M5Stack Arduino IDE Reference (ex Display commands and properties) ?
-
I'm sure that this information is right in front of me, but somehow I cannot locate it - is there a WIKI or similar reference for the M5Stack libraries? I have a Dial controller and cannot seem to find what commands and properties are available for the M5Dial.Display item... I looked in the Lessons & Guides area but don't see any general references.
Thanks for any links you can provide !!!
-
-
@teastain said in M5Stack Arduino IDE Reference (ex Display commands and properties) ?:
Try here:
https://docs.m5stack.com/en/arduino/m5dial/display
and here:
https://github.com/m5stack/M5Dial/tree/master/examples/Basic/displayThanks - but I've been through the example code. What I'm looking for is more of a complete reference, including all the commands not used in the sample code. For example, it took me 30 minutes of Googling to discover how to clear the display screen by using the fillScreen command... It would be very useful if a complete listing of commands and the argument types was available. Sometimes I get lucky and the Arduino IDE editor pops up a list of options as I code, but in many instances you get no pop-ups or the box doesn't show all the options. And of course C is so case sensitive that the first attempt of 'fillscreen' resulted in an error...
This information must exist somewhere - how else are people programming these things if there's no reference of how to do it ?
-
@TomKatt The first link is the API
https://docs.m5stack.com/en/arduino/m5dial/display
The other controls are M5GFX or plain-jane GFX
one of thee most common Graphics available.
Look up M5canvas.
The Dial is just a StampS3 and a LCD. -
@teastain said in M5Stack Arduino IDE Reference (ex Display commands and properties) ?:
@TomKatt The first link is the API
https://docs.m5stack.com/en/arduino/m5dial/displayI did see that - but that's not API documentation as I am familiar with...
For example, where in that link identifies all the display commands? I stumbled upon the fillScreen argument earlier, but even now going back to the first link I cannot locate a command I know exists...
Please pardon my ignorance here ;-)
EDIT - I think I found something along the lines of what I am looking for here:
https://docs.m5stack.com/en/arduino/m5core2/lcd_apiNot complete or Dial specific, but at least lists the commands and arguments with examples. What I would really like is this type of information for the Dial... Perhaps I can just substitute .lcd for .display ?
-
@TomKatt
This is my "tool drawer"! The browser links I use every day. -
Thank you for your help and your list of reference materials. I will review them going forward.
M5Stack is so full of potential and really great value - I don't mind putting in some effort to learn how to use it. At least I have prior experience with microcontrollers (AVR), so I have some general idea what is going on. But I will say M5 would very much benefit from additional reference materials (that are easy to find lol).
PS - I have Dial, Core 2 and Fire controllers. Also AI Unit V2 wifi camera. Just ordered DinMeter coming this week. Plenty of fun if I can figure them all out :-)
-
Cheers!