Jump to content

e-paper quirks


xsherlock

Recommended Posts

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?

Link zu diesem Kommentar
Share on other sites

Join the conversation

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

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...