From 8161e5c8575c50cb4e760ed790e443799718907a Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 6 Sep 2023 22:56:14 -0700 Subject: [PATCH] update with notes --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5325533..1582f06 100644 --- a/README.md +++ b/README.md @@ -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. + +