Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

Online Playground for the Adafruit GFX Library

Open urish opened this issue 5 years ago • 8 comments

I took the ssd1306_128x64_i2c example and turned it into an online playground on Wokwi, an Arduino teaching platform I'm working on.

The playground allows you to run the code in your browser, using an Arduino AVR simulator, so you can learn how the Adafruit GFX API works and experiment with it right from your browser, without the need to pull and connect an Arduino board to your PC:

https://wokwi.com/playground/ssd1306

I also created another example with the Tamaguino game, which also uses the Adafruit GFX library:

https://wokwi.com/playground/tamaguino

I'd love to get your input on:

  1. Does it work well for you?
  2. Does it feel intuitive?
  3. Which use cases come to your mind?
  4. What else would you like to see?

Thanks!

urish avatar Apr 23 '20 18:04 urish

In my case, the dino has a display issue (like it's shifted right by half a screen) image - but the first example works well.

Yes it's intuitive. It's exciting to me if you can support more screens, I would use this to play around with rendering code without flashing a device at each test. Thanks !

ddlsmurf avatar Apr 24 '21 21:04 ddlsmurf

Thanks for the feedback @ddlsmurf!

First the tamaguino example, does it work well for you now?

Which other screens would you like to see supported?

urish avatar Apr 25 '21 11:04 urish

Yup works fine now - the timer in the top right is very annoying though it really needs a fixed width font. The screen I'm playing with now is 200x200 but ideally it could be cool to just pick any resolution

ddlsmurf avatar Apr 25 '21 20:04 ddlsmurf

Regarding the timer - the font should be fixed with. This is what it looks here (Chrome on Windows):

https://user-images.githubusercontent.com/892318/116008818-29c67100-a61f-11eb-8c5c-cb3024199571.mp4

Does it look different for you?

What model is that screen?

urish avatar Apr 25 '21 20:04 urish

Update: I managed to reproduce the jumpy timer issue on Safari and uploaded a fix. Does it work better for you now?

urish avatar Apr 25 '21 21:04 urish

Perfect =) Impressive work alltogether.

ddlsmurf avatar Apr 25 '21 21:04 ddlsmurf

@urish Thanks a lot for this. Dramatically sped up some of my development work. Is there a way to simulate Serial.print statements?

lemonkey avatar Aug 04 '21 03:08 lemonkey

Yes, they should work out of the box. e.g. https://wokwi.com/arduino/projects/305978006798598721

urish avatar Aug 04 '21 07:08 urish