Jump to content

[Feature] Example Arduino sketch


inmarket

Recommended Posts

An example sketch has been added in the boards/base/ArduinoTinyScreen directory. It shows how to use ugfx as an Arduino library using the standard Arduino development software.

Please read the instructions in readme.txt and the example carefully as there are a few steps associated with setting it up due to the strange library system of the Arduino development software.

Link to comment
Share on other sites

I've tried it and it basically works (compiles, that is). However, in order to be able to keep ugfx configurations for different projects separated, Arduino must be tricked into selecting the right "installation" of ugfx. Some remarks about that are here (posts #20 and #21): https://forum.pjrc.com/threads/26535-uG ... #post88929

It might be possible to make an even cleaner approach by separating ugfx from a project-specific configuration and the low-level drivers. I'll try that later.

Regards

Christoph

Link to comment
Share on other sites

Progress is here: https://hackaday.io/project/8539-using-ugfx-in-arduino

I'll sum it up here when I'm satisfied with the result, with a clear example,

This looks great! Thank you very much for your work!

If this is "finished", would you like to add the guide as an article to our wiki? We are going to add several guides like that for other IDEs such as Keil µVision in the near future as well. It would be nice if everything would be in the same place. We already have a guide for the ChibiStudio that was contributed by a community member (http://wiki.ugfx.org/index.php?title=Using_ChibiStudio) and right now another community member is working on an in-depth step-by-step guide for using the GIT repository (work in progress): http://wiki.ugfx.org/index.php?title=GIT_Instructions

~ Tectu

Link to comment
Share on other sites

  • 1 year later...

Crteensy's link above should give you how he integrated uGFX. It is a great strategy for a serious arduino programmer.

For the less serious see the wiki article. It is a slightly simpler method but less suitable for multiple projects.

Once setup most of the uGFX demos will run subject to RAM and ROM. eg the combo demo may struggle to fit non ARM arduino cpus due to lack of resources. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...