I managed to turn uGFX into an arduino library (well, kinda). You need five things:
github: https://github.com/crteensy/ugfx-arduino
The repo includes ugfx-arduino, a sample SSD1351 driver, and a sample sketch and config library.
More display drivers can be added as individual libraries, so give it a try! uGFX ships with a lot of driver examples for common displays, see https://bitbucket.org/Tectu/ugfx/src/ -> drivers -> gdisp. As uGFX also supports audio we might even be able to get the Teensy audio board to work with this.
This is highly experimental because it relies on arduino's library lookup mechanism to pick the correct driver and project-specific config library, but it seems to work. I've tried to confuse arduino in a quite a few ways and it didn't fail with the scheme outlined above.
Regards
Christoph
- ugfx in your arduino libraries folder
- ugfx-arduino, a wrapper library that adds the necessary ugfx sources
- a driver library for the display you want to use, e.g. ugfx-arduino-ssd1351
- project-ugfx-config, a configuration library that includes the first two, and configures ugfx for your sketch.
- your actual sketch
github: https://github.com/crteensy/ugfx-arduino
The repo includes ugfx-arduino, a sample SSD1351 driver, and a sample sketch and config library.
More display drivers can be added as individual libraries, so give it a try! uGFX ships with a lot of driver examples for common displays, see https://bitbucket.org/Tectu/ugfx/src/ -> drivers -> gdisp. As uGFX also supports audio we might even be able to get the Teensy audio board to work with this.
This is highly experimental because it relies on arduino's library lookup mechanism to pick the correct driver and project-specific config library, but it seems to work. I've tried to confuse arduino in a quite a few ways and it didn't fail with the scheme outlined above.
Regards
Christoph