C++ driver software code for Maxim Integrated MAX31723/MAX31722 device temperature sensor. The MAX31723 provides 9 to 12 bits of resolution.
Dependents: MAX31723_Thermostat_Thermometer_Sensor
Revision 1:bb6f11be119f, committed 2019-01-27
- Comitter:
- phonemacro
- Date:
- Sun Jan 27 02:49:07 2019 +0000
- Parent:
- 0:4a3d6ac5042d
- Child:
- 2:7a20e65da621
- Commit message:
- publish as Maxim Integrated
Changed in this revision
| max31723.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/max31723.cpp Sat Jan 26 23:55:38 2019 +0000
+++ b/max31723.cpp Sun Jan 27 02:49:07 2019 +0000
@@ -39,7 +39,6 @@
int MAX31723::write_reg(uint8_t val, uint8_t reg)
{
-
m_chip_enable = 1;
m_spi.write(reg);
m_spi.write(val);
@@ -49,7 +48,6 @@
int MAX31723::read_reg(uint8_t &val, uint8_t reg)
{
-
m_chip_enable = 1;
m_spi.write(reg);
val = m_spi.write(0);