File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11name =M5Core2
2- version =0.1.7
2+ version =0.1.8
33author =M5Stack
44maintainer =M5Stack
55sentence =Library for M5Stack Core2 development kit
You can’t perform that action at this time.
0 commit comments