m5stack / M5Atom

M5Stack Atom Arduino Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LEDDisplay doesn't display anything

johnwargo opened this issue · comments

The sample LEDDisplay app has a typo:

//    M5.dis.animation((uint8_t *)AtomImageData, 200, LED_DisPlay::kMoveLeft, 18);
    M5.dis.animation((uint8_t *)AtomImageData, 200, LED_Display::kMoveLeft, 18);

but even with that fix, the sketch runs on the device, but nothing appears on the display.

I see that there's PRs attempting to fix related issues, any chance someone from M5Stack can look at all those PRs and fix the sample apps?

+1 for this. On further investigation my issue is caused by a few things

  1. The M5Atom.h and LED_DisPlay.cpp may be out of date (latest in PlatformIO does not contain the sources here from master, you may be pulling in old versions with bugs and a file/class rename issue)
  2. Buffer overflow in old code (fixed in this merge request: #20 )

@Tinyu-Zhao I see you closed it - why? Was this resolved? Have you merged the related pull requests?

Standard GitHub protocol for closing issues says that you should explain why you're closing it and, if appropriate, link the issue to the action that fixed the issue.

commented

@Tinyu-Zhao I see you closed it - why? Was this resolved? Have you merged the related pull requests?

Standard GitHub protocol for closing issues says that you should explain why you're closing it and, if appropriate, link the issue to the action that fixed the issue.

#20
https://github.com/m5stack/M5Atom/tree/master/examples/Basics/LEDDisplay
You can try it,If you have any other questions, please contact me.