update with notes

This commit is contained in:
Jake Goodwin 2023-09-06 22:56:14 -07:00
parent c5fc7461e7
commit 8161e5c857
1 changed files with 11 additions and 0 deletions

View File

@ -46,5 +46,16 @@ ctest
- add functions to load saved configs
###Mocking the TWI/I2C
The twi needs to be mocked or faked correctly to make the testing
of the functions doable.
The best way I can find to handle this is with a buffer of twi data
that simulate registers that the program reads/writes to.
This is handled by using function pointers for the tx and rx of i2c/twi data.