Nothing yet. Samples don't work.
Posts made by johnwargo
-
Pull Requests?
Why are the Pull Requests languishing in https://github.com/m5stack/M5Atom/pulls?
Community members like me found issues and tried to fix them, but are being ignored.
-
RE: Controlling Atom Matrix LEDs
@world101 interesting, thanks - I'll give it a try.
yep, that worked - thanks!!
-
RE: Matrix M5.dis
@felmue aaah, OK, I missed that when I looked at the source. Thanks.
I'm loading
M5Atom.h
andFastLED.h
and its just not working for me. -
Controlling Atom Matrix LEDs
I'm trying to learn how to manipulate the LED matrix on the M5Stack Atom Matrix device and I'm struggling to find complete examples or get FastLED to work with it. In my experience with FastLED, I should be able to initialize the matrix with the following code:
#include "M5Atom.h" #include <FastLED.h> #define NUM_LEDS 25 #define DATA_PIN 27 CRGB leds[NUM_LEDS]; void setup() { Serial.begin(115200); delay(1000); Serial.println(""); Serial.println("Initializing M5Stack Atom Matrix"); M5.begin(true, false, true); // Initialize the FastLED library for this device's configuration Serial.println("\nInitializing FastLED"); FastLED.addLeds<WS2812, DATA_PIN>(leds, NUM_LEDS); // M5Stack recommends not setting this value greater than 20 // to avoid melting the screen/cover over the LEDs Serial.println("Setting brightness"); FastLED.setBrightness(20); // Initialize all device LEDs to off (black) Serial.println("Clearing display"); for (int num = 0; num < NUM_LEDS; num++) { Serial.println(num); leds[num] = CRGB::Black; } Serial.println("Showing LEDs"); FastLED.show(); Serial.println("Finishing setup"); }
I have a bunch of extra code in there so I can tell where
setup
fails, and it's at the point where I callFastLED.show()
- everything to that point is textbook FastLED, but this just doesn't work.It's possible, or even likely, that this is an issue with FastLED, but I simply can't find a simple, functioning example of how to code the matrix. There's a sample app buried in the SDK here: https://github.com/m5stack/M5Atom/blob/master/examples/Basics/LEDDisplay/LEDDisplay.ino, but I can't find documentation of the
dis
object used in that example (looking at the code, and understanding that the DisPlay library isn't even loaded byM5
I doubt it will even compile. -
RE: Matrix M5.dis
@felmue Thanks, yes, I have - but that's not documentation for
M5.dis
object, that's documentation for some methods in a utility library that isn't even loaded by the M5 library.led-matrix:14:10: error: 'class LED_Display' has no member named 'fillpix' M5.dis.fillpix(CRGB::Black); ^ exit status 1 'class LED_Display' has no member named 'fillpix'
I'm trying to figure out how to work with the matrix display on the Atom Matrix and I can't find any examples, end to end, that work. I found a reference to
M5.dis
but I'm just not seeing anything that references it or real examples of how to use it.I tried using FastLED which is what the
utility/LED_DisPlay.h
code uses under the covers, even submitted some PRs today to tighten up that code, but as soon as I make any call to FastLED to update the display or show pixels, the sketch crashes. -
RE: Matrix M5.dis
Thanks, but that doesn't answer my question. I'm looking at the sample apps and I see references to
M5
methods, andM5.dis
but I cannot find reference documentation for them anywhere.Where are the reference docs for the
M5
SDK? What are the methods, properties, etc. for theM5.dis
object? -
Matrix M5.dis
I just purchased some M5 Atom Matrix devices and I want to start programming the LEDs. Where do I find documentation for the M5.dis API? The sample code does very little and I can't find any reference to M5.dis in the docs I've been able to find.