max31856 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -7
- data/lib/max31856.rb +0 -16
- data/lib/max31856/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0906a446477b91b298684b023090288f3459f760bc68ed95f67ef67cf82df329'
|
4
|
+
data.tar.gz: 42041fbf89cb1d63230a79bae75ff82e243e8c3172cd7dd709c8a41f9c256b96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd384a0bfd707e7899130461b879ad3715cbc0a2e501f7d3b717e6f137747066b45618c71e25889c40939c3c6404b42c89c2807de1625242e1327ef03339060
|
7
|
+
data.tar.gz: 5b8cbc8acb80862b2716cdb05d69912e1bc3e97af991f937d2c4fa240840a9762a7521531ffc855d61c560f296a50ba4335c998a72712bf3aa5d8406688a30c2
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# MAX31856
|
2
2
|
|
3
|
-
|
3
|
+
MAX31856 - Precision Thermocouple to Digital Converter with Linearization
|
4
|
+
|
5
|
+
SPI interface using PiPiper
|
4
6
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -24,17 +25,25 @@ Or install it yourself as:
|
|
24
25
|
|
25
26
|
m = MAX31856.new(chip = 0, clock = 2_000_000)
|
26
27
|
m.config
|
27
|
-
m.read
|
28
|
+
m.read # [Cold Junction Temp, Thermocouple Temp] floats in celsius
|
28
29
|
|
29
30
|
## Development
|
30
31
|
|
31
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
32
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
33
|
+
Then, run `rake spec` to run the tests. You can also run `bin/console`
|
34
|
+
for an interactive prompt that will allow you to experiment.
|
32
35
|
|
33
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
36
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
37
|
+
To release a new version, update the version number in `version.rb`,
|
38
|
+
and then run `bundle exec rake release`, which will create a git tag
|
39
|
+
for the version, push git commits and tags, and push the `.gem`
|
40
|
+
file to [rubygems.org](https://rubygems.org).
|
34
41
|
|
35
42
|
## Contributing
|
36
43
|
|
37
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/nofxx/max31856.
|
44
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nofxx/max31856.
|
45
|
+
This project is intended to be a safe, welcoming space for collaboration,
|
46
|
+
and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
38
47
|
|
39
48
|
## License
|
40
49
|
|
@@ -42,4 +51,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
42
51
|
|
43
52
|
## Code of Conduct
|
44
53
|
|
45
|
-
Everyone interacting in the
|
54
|
+
Everyone interacting in the MAX31856 project’s codebases and issue trackers is expected to follow the [code of conduct](https://github.com/nofxx/max31856/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/max31856.rb
CHANGED
@@ -152,19 +152,3 @@ class MAX31856
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
end
|
155
|
-
|
156
|
-
|
157
|
-
# def print_c(label, temp)
|
158
|
-
# "🌡 #{label.to_s.upcase}: #{format('%.2f', temp)} ℃"
|
159
|
-
# end
|
160
|
-
|
161
|
-
# m = MAX31856.new # :k
|
162
|
-
# # m.read_fault
|
163
|
-
# m.config
|
164
|
-
# loop do
|
165
|
-
# tc, cj = m.read
|
166
|
-
# print print_c :cj, cj
|
167
|
-
# print ' '
|
168
|
-
# puts print_c :tc, tc
|
169
|
-
# sleep 0.8
|
170
|
-
# end
|
data/lib/max31856/version.rb
CHANGED