![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Sample host software for the Maxim Integrated DS1775, DS75 Digital Thermometer Thermostat IC hosted on the MAX32630FTHR. The DS1775 is suitable for PCs, cell phones, and other thermally sensitive systems.
Dependencies: max32630fthr DS1775_Digitial_Thermometer_Thermostat USBDevice
Diff: main.cpp
- Revision:
- 9:a22549dfaf5f
- Parent:
- 8:2b1ab5937e95
- Child:
- 11:505d7cf8587a
diff -r 2b1ab5937e95 -r a22549dfaf5f main.cpp --- a/main.cpp Sun Apr 07 11:39:25 2019 +0000 +++ b/main.cpp Sun Apr 07 11:42:04 2019 +0000 @@ -91,7 +91,7 @@ temp_sensor.read_cfg_reg(&cfg); printf("Configuration Register = 0x%02Xh \r\n", cfg); -#if 1 +#if 0 temp_sensor.write_trip_low(-63.9375); temperature = temp_sensor.read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP); @@ -129,7 +129,7 @@ printf("\r\n\r\n"); -#if 1 +#if 0 temp_sensor.write_trip_low(-55.0f); temperature = temp_sensor.read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP); @@ -167,7 +167,7 @@ ds1775_read_cfg_reg(&cfg, i2cBus); printf("Configuration Register = 0x%02Xh \r\n", cfg); -#if 1 +#if 0 ds1775_write_trip_low(-63.9375, i2cBus); temperature = ds1775_read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP, i2cBus); @@ -203,7 +203,7 @@ ds1775_read_cfg_reg(&cfg, i2cBus); printf("Configuration Register = 0x%02Xh \r\n", cfg); -#if 1 +#if 0 ds1775_write_trip_low(-55, i2cBus); temperature = ds1775_read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP, i2cBus);