Merge I2C command handler into main #18

Merged
sebgab merged 15 commits from output-fan-data-over-i2c into main 2024-04-30 08:37:29 +00:00

15 Commits

Author SHA1 Message Date
Sebastian H. Gabrielli
91cffd78f4 Move data initialization into write, as it is only needed there 2024-04-28 20:46:50 +02:00
Sebastian H. Gabrielli
4666f79dd3 Init the fan history as 0 and add Ina to authors in main 2024-04-28 20:23:17 +02:00
Sebastian H. Gabrielli
d31f03b6c7 Delete unused EEPROM code & update comments
We don't use a lot of the written EEPROM code.
This unused code has now been deleted
2024-04-28 20:21:56 +02:00
Sebastian H. Gabrielli
6acdb2beb6 Rename receive buffer for better clarity & add comment 2024-04-28 20:14:27 +02:00
Sebastian H. Gabrielli
ba54ff20ef Fix master slave naming and remove dead code 2024-04-28 20:12:24 +02:00
Sebastian H. Gabrielli
8f61e6b998 Validate that we do not overflow the receive buffer
Closes #20
2024-04-28 20:10:01 +02:00
Sebastian H. Gabrielli
ae1c50ee09 Writing config works 2024-04-27 15:39:46 +02:00
Sebastian H. Gabrielli
f654ae96f6 Add case structure for better handling of future config params
A case structure to send the correct config value has been added.
2024-04-27 14:55:44 +02:00
Sebastian H. Gabrielli
dd624d4d48 Reading config parameter works 2024-04-27 14:52:46 +02:00
Sebastian H. Gabrielli
fb24365469 Prepare for write config 2024-04-24 15:50:58 +02:00
Sebastian H. Gabrielli
b8d19731ad Clear fan data works 2024-04-24 15:43:27 +02:00
Sebastian H. Gabrielli
822845cc7a Read temperature command works 2024-04-24 13:40:45 +02:00
Sebastian H. Gabrielli
1eaeeef9a0 Read temperature over I2C works
Has not been tested with thermistor as I didn't have the hardware.
Testing with a hardcoded positive number works.
2024-04-24 13:24:15 +02:00
Sebastian H. Gabrielli
d964ebea37 Handle read single fan speed 2024-04-23 15:45:41 +02:00
Sebastian H. Gabrielli
bf3753a012 I2C bulk fan read works 2024-04-23 15:31:32 +02:00