M5atom matrix: dimmable light
-
Just to share a simple project (2 minutes) with an M5atom Matrix and an arduino module k-018 (https://arduinomodules.info/ky-018-photoresistor-module/). Just plug the module in the M5atom (the S pin of the module must be plugged in the g25 , no way to plug it reverse) and upload the code, the M5atom matrix will be brighter as the light decreases. 5 led brightness and 5 different colors (changing color by clicking the screen)
I have encountered several problems with the leds: The screen has strange behaviour with some colors (especially with some predefined colors) and is white when the brightness is at 5. I don't know why, if someone has any explanation, please can you tell me?
The source code and photos are here :
https://github.com/kilamrauon/M5atom-dimmable-light/blob/main/README.mdA video about the project:
https://youtu.be/xxdDb_nvqsg -
Hi. for the time being. we don't suggest you use
#include <FastLED.h>
with the Atom lib. because the Atom lib already included it. they have some conflict. (we still not fix it yet.) -
I have removed de fastled library, it works but the problems remain.