Skip to content

Commit b1cf076

Browse files
committed
update exmaple and release v0.1.8
1 parent 1c93706 commit b1cf076

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/Basics/record/record.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ void loop() {
5353
// 将触摸坐标存储在pos.内
5454
if (pos.y > 240) {
5555
if (pos.x < 109) {
56-
M5.Axp.SetLDOEnable(3, true); // Open the vibration. 开启震动马达
56+
M5.Axp.SetVibration(true); // Open the vibration. 开启震动马达
5757
delay(100);
58-
M5.Axp.SetLDOEnable(3, false);
58+
M5.Axp.SetVibration(false);
5959
data_offset = 0;
6060
M5.Spk.InitI2SSpeakOrMic(MODE_MIC);
6161
size_t byte_read;

examples/Basics/speak/speak.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void loop() {
5454
// 将触摸坐标存储在pos.内
5555
if (pos.y > 240)
5656
if (pos.x < 109) {
57-
M5.Axp.SetLDOEnable(3, true); // Open the vibration. 开启震动马达
57+
M5.Axp.SetVibration(true); // Open the vibration. 开启震动马达
5858
delay(100);
59-
M5.Axp.SetLDOEnable(3, false);
59+
M5.Axp.SetVibration(false);
6060
delay(100);
6161
M5.Spk.PlaySound(
6262
previewR,

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/M5Core2.git"
1212
},
13-
"version": "0.1.7",
13+
"version": "0.1.8",
1414
"frameworks": "arduino",
1515
"platforms": "espressif32",
1616
"headers": "M5Core2.h"

library.properties

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

0 commit comments

Comments
 (0)