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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f58294b0e51251974b24d2e368b7c1aa4f3b9aa170d5801089aeeaf5012fe6c6
4
- data.tar.gz: 3ae873a5f9c15b185ec9e46eceb0ce5e713fb9c9e98186b1b5bcdf78fb5cf41c
3
+ metadata.gz: '0906a446477b91b298684b023090288f3459f760bc68ed95f67ef67cf82df329'
4
+ data.tar.gz: 42041fbf89cb1d63230a79bae75ff82e243e8c3172cd7dd709c8a41f9c256b96
5
5
  SHA512:
6
- metadata.gz: 687b8cfd0c66c0a297a7b513cfceecb16917a26874f192f88af47dc5f6e114c3416ac1e3410330fdf7a67f31efdf40ef35393c132e1cc5aa6086edc0a490cfa3
7
- data.tar.gz: 6557ee49f31bb53ed5488bebd7a872fcc0d774f90bda1826b873cfdf4eba0753e8b303edd50092ef05b67727bc0e05da0f305fade6d825531099a155195b6dae
6
+ metadata.gz: 9dd384a0bfd707e7899130461b879ad3715cbc0a2e501f7d3b717e6f137747066b45618c71e25889c40939c3c6404b42c89c2807de1625242e1327ef03339060
7
+ data.tar.gz: 5b8cbc8acb80862b2716cdb05d69912e1bc3e97af991f937d2c4fa240840a9762a7521531ffc855d61c560f296a50ba4335c998a72712bf3aa5d8406688a30c2
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # MAX31856
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/max31856`. To experiment with that code, run `bin/console` for an interactive prompt.
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. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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 Max31856 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nofxx/max31856/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -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
@@ -1,3 +1,3 @@
1
1
  class MAX31856
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: max31856
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini