Traumflug
Traumflug
@RaD, I just pushed branch _i2c-rebuild_, so you can see what happens. Basically I picked the first commit from your branch and picked together a test case from your other...
> Please, take a look on halfakop@6343a22 Thanks. If I can't find a better solution, which is quite possible, we'll fall back to this. BTW., your block there is on...
Yes, but how many data bytes? Once bytes are sent to display video, there's no apparent way to stop this for returning to the command level.
Glad to see you came to the same conclusion :-) This ringbuffer is now implemented and pushed. No reliable transmission end detection so far, but test code clears the screen...
> I think that display interface should give users the following function: > https://github.com/halfakop/Teacup_Firmware/blob/ssd1306/display_ssd1306_i2c.h#L39-L47 Yes, absolutely. This is a higher level than what I'm currently on. Right now I work...
Good. I2C part done, bus working reliably in all test conditions I could set up. Ringbuffer working fine as well. @RaD, I'd be glad if you could run this code,...
Just a note: in Adafruit's library they put a 0x00 in front of each single command, even when sending several of them together. [Example](https://github.com/adafruit/Adafruit_SSD1306/blob/master/Adafruit_SSD1306.cpp#L335-L342).
> This is allowable behaviour but unneeded. So you think it's pointless to support any display but yours. I better stay calm now. And thank you for testing the reviewed...
Let me try to explain why the code from halfakop didn't work. The bug, at least one, is [here](https://github.com/Traumflug/Teacup_Firmware/blob/0e1e6702736d91f7d436d1f121433cd3a9d44d87/i2c_bus.c#L98) This shouldn't be I2C_MODE_SARP, but I2C_MODE_SAWP. Another bug is plain exhaustion...
> I've pushed my u8g-stuff. How much RAM does this cost? How much Flash does this cost? What can it do what the current code can't? Does it work on...