antiprism / libu8g2arm

Other
9 stars 5 forks source link

Is it possible to use "u8x8_d_sdl_gpio" somehow to simulate button presses for menu action #3

Open karlo922 opened 4 months ago

karlo922 commented 4 months ago

I use your code to develop on my dekstop pc for my raspberry pi and attached screen using you SDL example. Is it somehow possible to also simulate simple button events so I can actually test the menu stuff too?

I only see u8x8_d_sdl_gpio in the code, but do not know how I could use it.

antiprism commented 4 months ago

Hi,

Sorry, I haven't used this, and don't know.

This looks like the corresponding original source file, and contains more code, so might give some clues

https://github.com/olikraus/u8g2/blob/master/sys/sdl/common/u8x8_d_sdl_128x64.c

Also

https://github.com/olikraus/u8g2/wiki/u8g2reference#begin

Adrian.