M5Stack ATOM Matrix
ATOM Matrix
Note: When using FastLED lib, the recommended brightness of RGB LED is 20. Please do not set it to a high brightness value to avoid damage to the LED and acrylic screen. (In ATOM lib, we have mapped its appropriate brightness range to 0~100)
Install M5Atom library to your project.
ATOM Library
https://github.com/m5stack/M5Atom
Read the codes in the repository to get the information necessary for making a code for M5Stack ATOM.
e.g. In src/M5Atom.h and src/M5Atom.cpp, you can find what the arguemtns of the method begin() are.
There are sample codes in 'examples'.
Arguments of M5.begin()
https://github.com/m5stack/M5Atom/blob/master/src/M5Atom.cpp
How to turn on and off the LED matrix on ATOM Matrix
Use drawpix() method.
Read src/utility/LED_DisPlay.h and src/utility/LED_Display.cpp.
You need to install FastLED library to manipulate the LED matrix on ATOM Matrix.
Reference:
LED(WS2812C)の明るさ(setBrightness)を20より上に設定するとアクリル面やLED自体を損傷する。
setBrightnessのデフォルトは20。
https://qiita.com/jksoft/items/e78b95e4ba786a9d81b0
How to use the Button on ATOM Matrix
Read src/utility/Button.h and src/utility/Button.cpp.
How to use the Timer in ATOM Matrix
Read src/utility/M5Timer.h and src/utility/M5Timer.cpp.
How to use MPU-6886 in ATOM Matrix
MPU-6886 is a high-performance 6-axis MEMS MotionTracking device that combines a 3-axis gyroscope and a 3-axis accelermeter.
MPU-6886 Datasheet
PlatformIO
PlatformIOでM5Stack ATOMに書き込むまで https://memoteki.net/archives/3108]
boardはm5stack-atomがあるがm5stick-cを選択
#M5Stack