geekscape / aiko_engine_mp

microPython event based engine supporting network messages (MQTT), times and various hardware drivers
Other
22 stars 24 forks source link

blinking eye demo. #21

Closed marcmerlin closed 3 years ago

marcmerlin commented 3 years ago

Ok, the 2 eyes aren't eactly synchronized because I can't update both oleds at the same time, but hopefully that's close enough :)

geekscape commented 3 years ago

hey @marcmerlin, if you complete all your image bliting, fills, text on both OLED screens ... before you do oled0.show() and oled1.show() that will help minimize the synchronization lag between the two screens.

Move line 221: oled0.show() ... https://github.com/geekscape/aiko_engine_mp/blob/master/examples/blinkeye/oled_blinkeye.py#L221 ... to immediately before line 246: oled1.show() ... https://github.com/geekscape/aiko_engine_mp/blob/master/examples/blinkeye/oled_blinkeye.py#L246

marcmerlin commented 3 years ago

fair point @geekscape , unfortunately the visible delay is from show(), but it doesn't hurt to remove a few extra milliseconds, if any :)