Jump to content

Recommended Posts

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...