fix IR Avoid

This commit is contained in:
lzty634158 2020-12-24 17:31:43 +08:00
parent 8f498e8111
commit 772f701daa
3 changed files with 1068 additions and 1067 deletions

View File

@ -1,6 +1,6 @@
# mbit
Extension for Yahboom_mbit_en V3.0.3
Extension for Yahboom_mbit_en V3.0.4
## License

View File

@ -935,6 +935,7 @@ namespace mbit_Robot {
let temp: boolean = false;
pins.digitalWritePin(DigitalPin.P9, 0);
control.waitMicros(10);
switch (value) {
case enAvoidState.OBSTACLE: {
if (pins.analogReadPin(AnalogPin.P3) < 800) {

View File

@ -1,7 +1,7 @@
{
"name": "mbit",
"version": "3.0.3",
"description": "Extension for YahBoom m:bit V3.0.3",
"version": "3.0.4",
"description": "Extension for YahBoom m:bit V3.0.4",
"license": "MIT",
"dependencies": {
"core": "*",