xsherlock Posted April 13, 2021 at 09:23 AM Posted April 13, 2021 at 09:23 AM Hi, I just started with the e-paper and I run into behaviour of it that I cant explain, maybe you can help me. (gray model) I works perfectly predictable in normal update mode (7s one) but when set to the delta mode it seems like the color constants are no longer valid and fill display white does fill it with black instead. ep = BrickletEPaper296x128(epaper_uid, ipcon) ep.set_display_type(1) ep.set_update_mode(0) ep.fill_display(ep.COLOR_WHITE) ep.draw_text(16, 48, ep.FONT_24X32, ep.COLOR_BLACK, ep.ORIENTATION_HORIZONTAL,clock.strftime("%H:%M:%S")) ep.draw() time.sleep(10) ep.set_update_mode(2) ep.fill_display(ep.COLOR_WHITE) clock = datetime.datetime.now() ep.draw_text(16, 48, ep.FONT_24X32, ep.COLOR_BLACK, ep.ORIENTATION_HORIZONTAL,clock.strftime("%H:%M:%S")) ep.draw() my logic is that I before calling the second draw I fill the buffer with white, draw next clock and then call draw to dispay and the text should update. Unfortuantely the above causes the screen to go all black why? Quote
borg Posted April 13, 2021 at 01:18 PM Posted April 13, 2021 at 01:18 PM Indeed, the fill_display function did not yet have support for delta mode. I just released firmware version 2.0.2 that adds support for it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.