Skip to content

Commit

Permalink
更新 pxt.json, main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
elecfreaks1 committed Apr 14, 2022
1 parent 16427e2 commit b371338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace neZha {
iic_buffer[2] = speed;
iic_buffer[3] = 0;
pins.i2cWriteBuffer(neZha_address, iic_buffer);
basic.pause(10)
pins.i2cWriteBuffer(neZha_address, iic_buffer);
break;
case MotorList.M2:
Expand All @@ -81,6 +82,7 @@ namespace neZha {
iic_buffer[2] = speed;
iic_buffer[3] = 0;
pins.i2cWriteBuffer(neZha_address, iic_buffer);
basic.pause(10)
pins.i2cWriteBuffer(neZha_address, iic_buffer);
break;
case MotorList.M3:
Expand All @@ -95,6 +97,7 @@ namespace neZha {
iic_buffer[2] = speed;
iic_buffer[3] = 0;
pins.i2cWriteBuffer(neZha_address, iic_buffer);
basic.pause(10)
pins.i2cWriteBuffer(neZha_address, iic_buffer);
break;
case MotorList.M4:
Expand All @@ -109,6 +112,7 @@ namespace neZha {
iic_buffer[2] = speed;
iic_buffer[3] = 0;
pins.i2cWriteBuffer(neZha_address, iic_buffer);
basic.pause(10)
pins.i2cWriteBuffer(neZha_address, iic_buffer);
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"public": false,
"targetVersions": {
"target": "4.0.11",
"target": "4.0.18",
"targetId": "microbit"
},
"supportedTargets": [
Expand Down

0 comments on commit b371338

Please sign in to comment.