Closed nuthub closed 4 years ago
Thanks for merging the PR.
Please also have a look at the line 768, which does not look correct to me:
pOLED->oled_addr = (uint8_t)scl;
Ugly re-use of a variable specifically for Linux. Unfortunately it is correct.
SCL feeding into oled_addr? Shouldn't it be
pOLED->oled_addr = (uint8_t)iAddr;
?
It is both wrong and right at the same time :( With my latest changes to the API, it needs to be cleaned up. I'm stuck away from my home (for maybe months now) and don't have an RPI handy to test it. Unless you specifically need it, it will need to stay the way it is until I can rewrite and retest it.
OK, I was just wondering, if it is correct, because it looked wrong. I just wanted to inform you. Btw, thank you very much for your efforts on that library.
When passing
iAddr
toint oledInit(...)
, it is not passed topOLED->oled_addr
.