Sebastian H. Gabrielli
1671476f41
Move index incrementation over storage
...
This avoids the problem where the current index has outdated data.
It does however mean the first piece of stored data is empty, but it is
a worthwile tradeoff.
2024-04-30 11:11:32 +02:00
Sebastian H. Gabrielli
bcd631001b
Current fan speed now returns the last fan speed measured
2024-04-30 11:10:26 +02:00
Sebastian H. Gabrielli
dd53b4dbf2
Fan data is now saved in the array
...
Closes #9
2024-04-30 11:08:03 +02:00
Sebastian H. Gabrielli
275c40498f
Merge branch 'fanspeed-comparator'
2024-04-30 10:59:47 +02:00
495cbbba44
Merge pull request 'Merge I2C command handler into main' ( #18 ) from output-fan-data-over-i2c into main
...
Reviewed-on: #18
2024-04-30 08:37:27 +00:00
772960d046
Fix comment, variables and function
...
add referance
2024-04-29 08:57:02 +02:00
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
ac5a054f8b
no worries
2024-04-27 18:45:04 +02:00
f0a435d578
add comment
2024-04-27 17:31:00 +02:00
e01c4d41ad
add second fan
2024-04-27 17:26:35 +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
10c82d001e
Fixed fanspeed
2024-04-26 17:00:04 +02:00
f2019dd57a
timer not worke
2024-04-26 15:47:02 +02:00
022ccb13a0
timer
2024-04-26 15:20:28 +02:00
6528a82b04
works
2024-04-26 15:13:45 +02:00
eb7d96dd82
maybe
2024-04-25 14:06:51 +02:00
8649d59d8d
add positive edge
2024-04-25 12:29:10 +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
c9b220616d
clean comments
2024-04-24 14:24:40 +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
a48a089a3c
works but not freq
2024-04-21 12:43:51 +02:00
57a35a483d
Merge branch 'tmp' into calculate-fanspeed
2024-04-17 15:03:34 +02:00
abc13364ec
comment somehting
2024-04-17 14:59:46 +02:00
e6a3815dc2
Merge branch 'thermistor-temp' into main
2024-04-16 18:00:41 +02:00
933949dcff
Fix variable name and led
2024-04-16 17:24:54 +02:00
Sebastian H. Gabrielli
a9fec3f661
Merge branch 'command-handler'
2024-04-16 17:02:59 +02:00
Sebastian H. Gabrielli
5ea7be0728
Explain pos variable
2024-04-16 16:20:32 +02:00
Sebastian H. Gabrielli
b1ca4c05bf
Rename foo in command handler to a more descirptive name
...
"foo" -> "command_byte"
2024-04-16 16:17:35 +02:00
9f27bc8454
Fix names
2024-04-16 15:56:51 +02:00
Sebastian H. Gabrielli
7e59368252
Implement handling reading more than one byte
2024-04-16 15:35:43 +02:00
Sebastian H. Gabrielli
9fd877aab5
Command handing works!
...
The command handler can now receive a command, then it can run a
function / return some data based on it.
2024-04-16 15:30:38 +02:00
58014e17d1
not this
2024-04-16 13:25:51 +02:00
9cf37461d2
Add something stuff, not work
2024-04-10 15:52:07 +02:00
14c09f63a9
MCC does not work
2024-04-10 14:53:17 +02:00
Inamr
23904b03ea
right pins
2024-04-09 16:46:54 +02:00
1b8ca0c7f6
Merge branch 'voltage-reading' into main
2024-04-09 16:20:46 +02:00
Inamr
63aa397b78
testing with hardware
...
cli and function names
2024-04-09 16:17:34 +02:00
ca28e23b70
Fixed header, comments and Muxpos
2024-04-09 16:13:04 +02:00
7f3c1fa7c1
Commented the code
2024-04-09 15:58:17 +02:00