Skip to content

Commit

Permalink
Merge pull request #49 from Tinyu-Zhao/master
Browse files Browse the repository at this point in the history
additional set pattern Width and Height
  • Loading branch information
Tinyu-Zhao authored Sep 2, 2021
2 parents ec57f8d + db2c356 commit 259d410
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/Basics/LEDDisplay/LEDDisplay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 获取更多资料请访问:https://docs.m5stack.com/zh_CN/core/atom_matrix
*
* describe:LED pattern display. LED图案显示
* date:2021/7/21
* date:2021/9/2
*******************************************************************************
*/
#include "M5Atom.h"
Expand All @@ -32,6 +32,7 @@ void loop(){
// Moves an AtomImageData 25 steps in the direction of a kmoveLeft at the specified speed of 200
//Notice: Speed range 0~255
//将某个图案AtomImageData以指定速度200向指定方向kMoveLeft移动25步(速度范围0~255)
M5.dis.setWidthHeight(25,5); //Set the width and height of the display pattern. 设置显示图案的宽高
M5.dis.animation((uint8_t *)AtomImageData, 200, LED_DisPlay::kMoveLeft, 25);
delay(5250);
}
2 changes: 1 addition & 1 deletion examples/Unit/FINGER_FPC1020A/FINGER_FPC1020A.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

#include <M5Atom.h>
#include "M5_Finger.h"
#include "M5_FPC1020A.h"

uint8_t userNum; //User number
FingerPrint FP_M;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ category=Device Control
url=https://github.com/m5stack/M5Atom
architectures=esp32
includes=M5Atom.h
depends=FastLED,UNIT_ENV,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,M5GFX,M5_BM8563,M5_ADS1100,M5_ADS1115,M5_Finger,HX711 Arduino Library,PCA9554,TinyGPSPlus,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,Ethernet2,ESP8266Audio
depends=FastLED,UNIT_ENV,Adafruit MCP4725,Adafruit TCS34725,Adafruit NeoPixel,MAX30100lib,MFRC522_I2C,M5GFX,M5_BM8563,M5_ADS1100,M5_ADS1115,M5_FPC1020A,HX711 Arduino Library,PCA9554,TinyGPSPlus,Adafruit SGP30 Sensor,FFT,TFTTerminal,ClosedCube TCA9548A,Ethernet2,ESP8266Audio

0 comments on commit 259d410

Please sign in to comment.