22[ ![ Arduino CI] ( https://github.com/RobTillaart/MAX6675/workflows/Arduino%20CI/badge.svg )] ( https://github.com/marketplace/actions/arduino_ci )
33[ ![ Arduino-lint] ( https://github.com/RobTillaart/MAX6675/actions/workflows/arduino-lint.yml/badge.svg )] ( https://github.com/RobTillaart/MAX6675/actions/workflows/arduino-lint.yml )
44[ ![ JSON check] ( https://github.com/RobTillaart/MAX6675/actions/workflows/jsoncheck.yml/badge.svg )] ( https://github.com/RobTillaart/MAX6675/actions/workflows/jsoncheck.yml )
5+ [ ![ GitHub issues] ( https://img.shields.io/github/issues/RobTillaart/MAX6675.svg )] ( https://github.com/RobTillaart/MAX6675/issues )
6+
57[ ![ License: MIT] ( https://img.shields.io/badge/license-MIT-green.svg )] ( https://github.com/RobTillaart/MAX6675/blob/master/LICENSE )
68[ ![ GitHub release] ( https://img.shields.io/github/release/RobTillaart/MAX6675.svg?maxAge=3600 )] ( https://github.com/RobTillaart/MAX6675/releases )
9+ [ ![ PlatformIO Registry] ( https://badges.registry.platformio.org/packages/robtillaart/library/MAX6675.svg )] ( https://registry.platformio.org/libraries/robtillaart/MAX6675 )
710
811
912# MAX6675
@@ -31,7 +34,7 @@ Different TC's have a different Seebeck Coefficient (SC) expressed in µV/°C.
3134See http://www.analog.com/library/analogDialogue/archives/44-10/thermocouple.html
3235
3336
34- ### Breakout
37+ #### Breakout
3538
3639The library is tested with a breakout board with following pins:
3740
@@ -45,11 +48,17 @@ The library is tested with a breakout board with following pins:
4548 +---------------------+
4649```
4750
51+ #### Related
52+
53+ - https://github.com/RobTillaart/MAX6675
54+ - https://github.com/RobTillaart/MAX31850
55+ - https://github.com/RobTillaart/MAX31855_RT
56+
4857
4958## Hardware SPI vs software SPI
5059
5160
52- ### Pins
61+ #### Pins
5362
5463Default pin connections. ESP32 can overrule with ** setGPIOpins()** .
5564
@@ -61,7 +70,7 @@ Default pin connections. ESP32 can overrule with **setGPIOpins()**.
6170 | SELECT | eg. 4 | 5 | 15 | * can be others too.*
6271
6372
64- ### Performance
73+ #### Performance
6574
6675Performance read() function, timing in us.
6776- UNO @ 16 MHz
@@ -86,16 +95,19 @@ Tested with **MAX6675_test_HWSPI.ino**
8695
8796## Interface
8897
98+ ``` cpp
99+ #include " MAX6675.h"
100+ ```
89101
90- ### Constructor
102+ #### Constructor
91103
92104- ** MAX6675()** create object.
93105- ** void begin(const uint8_t select)** set select pin => hardware SPI
94106- ** void begin(const uint8_t sclk, const uint8_t select, const uint8_t miso)**
95107set CLOCK, SELECT and MISO pin => software SPI
96108
97109
98- ### Hardware SPI
110+ #### Hardware SPI
99111
100112To be used only if one needs a specific speed.
101113
@@ -106,7 +118,7 @@ Del is the time in micros added per bit. Even numbers keep the duty cycle of the
106118- ** uint16_t getSWSPIdelay()** get set value in micros.
107119
108120
109- ### ESP32 specific
121+ #### ESP32 specific
110122
111123- ** void selectHSPI()** must be called before ** begin()**
112124- ** void selectVSPI()** must be called before ** begin()**
@@ -115,7 +127,7 @@ Del is the time in micros added per bit. Even numbers keep the duty cycle of the
115127- ** void setGPIOpins(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t select)** to overrule ESP32 default hardware pins.
116128
117129
118- ### Reading
130+ #### Reading
119131
120132To make a temperature reading call ** read()** .
121133It returns the status of the read which is a value between 0..7
@@ -141,7 +153,7 @@ the value of **getTemperature()** can become incorrect. So it is important to ch
141153the return value of ** read()** .
142154
143155
144- ### Offset
156+ #### Offset
145157
146158The library supports a fixed offset to calibrate the thermocouple.
147159For this the functions ** float getOffset()** and ** void setOffset(float offset)** are available.
@@ -153,7 +165,7 @@ A typical usage is to call **setOffset(273.15)** to get ° Kelvin.
153165- the offset can cause negative temperatures.
154166
155167
156- ### Delta analysis
168+ #### Delta analysis
157169
158170As the ** tc** object holds its last known temperature it is easy to determine the delta
159171with the last known temperature, e.g. for trend analysis.
@@ -170,7 +182,7 @@ with the last known temperature, e.g. for trend analysis.
170182```
171183
172184
173- ### Last time read
185+ #### Last time read
174186
175187The **tc** object keeps track of the last time **read()** is called in the function **uint32_t lastRead()**.
176188The time is tracked in **millis()**. This makes it easy to read the sensor at certain intervals.
@@ -192,7 +204,7 @@ if (millis() - tc.lastRead() >= interval)
192204```
193205
194206
195- ### GetRawData
207+ #### GetRawData
196208
197209The function ** uint32_t getRawData()** allows you to get all the 32 bits raw data from the board,
198210after the standard ** uint8_t tc.read()** call.
@@ -249,7 +261,26 @@ See examples
249261
250262## Future
251263
264+ #### Must
265+
266+ #### Should
267+
252268- update and verify documentation (as it is copied from MAX31855 lib)
253269- keep interface in sync with MAX31855 if possible.
254- -
270+
271+ #### Could
272+
273+ - create example to distinguish between MAX6675 and MAX31855
274+ - https://github.com/RobTillaart/MAX6675/issues/5
275+
276+ #### Wont
277+
278+
279+ ## Support
280+
281+ If you appreciate my libraries, you can support the development and maintenance.
282+ Improve the quality of the libraries by providing issues and Pull Requests, or
283+ donate through PayPal or GitHub sponsors.
284+
285+ Thank you,
255286
0 commit comments