m5stack / M5Core2

M5Core2 Arduino Library
MIT License
267 stars 117 forks source link

All LEDs turning on #128

Closed capedra closed 4 months ago

capedra commented 1 year ago

I've been using M5Stack Core2 AWS and after it's been running for several hours, all the Neopixel LEDs turns on without any commands for controlling them and they also even change colors whenever I press some keys on the screen. Also, M5.Axp.SetPeripherialsPower(false); // Turn off all external peripherials (5V power) doesn't seem to turn them off and I can only turn them off using FastLED library by putting:

  FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
  FastLED.setBrightness(0);
  leds[0] = CRGB::Black;
  leds[1] = CRGB::Black;
  leds[2] = CRGB::Black;
  leds[3] = CRGB::Black;
  leds[4] = CRGB::Black;
  leds[5] = CRGB::Black;
  leds[6] = CRGB::Black;
  leds[7] = CRGB::Black;
  leds[8] = CRGB::Black;
  leds[9] = CRGB::Black;
  FastLED.show();

How may I find out what's going on? Please help. Thanks!

JasonPittenger commented 1 year ago

Are you using IO pin 25 for anything? This pin is the data pin for the LEDs.

capedra commented 1 year ago

@JasonPittenger I was using IO pin 26, but then I changed to IO pin 19. So, now I'm using IO pins 13, 14, 19. Hints: 1: whenever I tap anywhere on the screen, the LEDs turn on and/or change colors. 2: it may be something related to the UART2 of the CORE2 AWS.

Tinyu-Zhao commented 5 months ago

Can you provide an example of what you were using so that I can more easily reproduce the problem?

Tinyu-Zhao commented 4 months ago

This matter has been in the past for too long and has not been answered by the questioner, so the question is closed.