Skip to content

Commit f6b95e1

Browse files
committed
Fix Arduino compilation problems
1 parent 2e9dcc6 commit f6b95e1

File tree

13 files changed

+1672
-1971
lines changed

13 files changed

+1672
-1971
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode/.browse.c_cpp.db*
3+
.vscode/c_cpp_properties.json
4+
.vscode/launch.json
5+
.vscode/ipch
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"platformio.platformio-ide"
6+
],
7+
"unwantedRecommendations": [
8+
"ms-vscode.cpptools-extension-pack"
9+
]
10+
}
Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/Basics/Led/Led.ino

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,34 @@
66
* Visit for more information: https://docs.m5stack.com/en/core/AtomS3
77
* 获取更多资料请访问: https://docs.m5stack.com/zh_CN/core/AtomS3
88
*
9-
* Describe: Button example. 按键示例
10-
* Date: 2022/12/18
9+
* Describe: LED Show example. LED展示示例
10+
* Date: 2023/1/3
1111
*******************************************************************************
12-
Press button to display the corresponding output on the screen and
13-
USBserial. 按下按键,在屏幕和串口上显示相应输出
12+
LED colour switching after burning program.
13+
烧录程序后LED彩灯颜色不断切换.
1414
*/
1515
#include <M5AtomS3.h>
1616
/* After M5AtomS3 is started or reset
1717
the program in the setUp () function will be run, and this part will only be
1818
run once. 在 M5AtomS3
1919
启动或者复位后,即会开始执行setup()函数中的程序,该部分只会执行一次。 */
2020
void setup() {
21-
M5.begin(true, true, false, false); // Init M5AtomS3. 初始化 M5AtomS3
22-
M5.Lcd.println("Pls Press Btn change color");
21+
M5.begin(false, true, false, true); // Init M5AtomS3. 初始化 M5AtomS3
22+
USBSerial.println("Pls Press Btn change color");
2323
}
2424

2525
/* After the program in setup() runs, it runs the program in loop()
2626
The loop() function is an infinite loop in which the program runs repeatedly
2727
在setup()函数中的程序执行完后,会接着执行loop()函数中的程序
2828
loop()函数是一个死循环,其中的程序会不断的重复运行 */
2929
void loop() {
30-
M5.update(); // Read the press state of the key. 读取按键 A, B, C 的状态
31-
if (M5.Btn.wasReleased() || M5.Btn.pressedFor(1000)) {
32-
USBSerial.print('A');
33-
M5.Lcd.print("A");
34-
}
30+
M5.dis.drawpix(0xff0000);
31+
M5.dis.show();
32+
delay(500);
33+
M5.dis.drawpix(0x00ff00);
34+
M5.dis.show();
35+
delay(500);
36+
M5.dis.drawpix(0x0000ff);
37+
M5.dis.show();
38+
delay(500);
3539
}

examples/Basics/MPU6886/MPU6886.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ void loop() {
4040
M5.Lcd.printf("IMU:\r\n");
4141
M5.Lcd.printf("%0.2f %0.2f %0.2f\r\n", ax, ay, az);
4242
M5.Lcd.printf("%0.2f %0.2f %0.2f\r\n", gx, gy, gz);
43-
delay(300);
43+
delay(500);
4444
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "git",
1111
"url": "https://github.com/m5stack/M5AtomS3.git"
1212
},
13-
"version": "0.0.1",
13+
"version": "0.0.2",
1414
"frameworks": "arduino",
1515
"platforms": "espressif32",
1616
"headers": "M5AtomS3.h"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=M5AtomS3
2-
version=0.0.1
2+
version=0.0.2
33
author=M5Stack
44
maintainer=M5Stack
55
sentence=Library for M5AtomS3 Core development kit

src/Fonts/Font72x53rle.c

Lines changed: 0 additions & 257 deletions
This file was deleted.

src/Fonts/Font72x53rle.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)