Skip to content

Commit

Permalink
updated the reverese polarity feature
Browse files Browse the repository at this point in the history
  • Loading branch information
DebaDr0na committed May 21, 2024
1 parent c3076a2 commit d4f4575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/14_blite_rc_car/14_blite_rc_car.ino
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
break;
case CMD_SRVCLCK:
Serial.println("Turn servo clockwise");
//mybot.turnServoClockwise();
mybot.reversePolarityM12();
break;
case CMD_SRVACLCK:
Serial.println("Turn servo anti-clockwise");
//mybot.turnServoAntiClockwise();
mybot.reversePolarityM34();
break;
default:
Serial.println("Unknown command");
Expand Down
4 changes: 2 additions & 2 deletions examples/14_blite_rc_car/remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ WebSocket : <span id="ws_state" style="color:blue">closed</span>
</p>
<button id="wc_push" type="button" onclick="wc_onclickpush();">Push</button>
<h style="font-size:17px; color:blue">SERVO</h>
<button id="wc_servclck" type="button" onclick="wc_onclickservclck();">Clockwise</button>
<button id="wc_servaclck" type="button" onclick="wc_onclickservaclck();">AntiClockwise</button>
<button id="wc_servclck" type="button" onclick="wc_onclickservclck();">ReverseM1</button>
<button id="wc_servaclck" type="button" onclick="wc_onclickservaclck();">ReverseM2</button>
<br>
<br>
<div class="sponsor">Sponsored by <a href="https://paulsayan.wixsite.com/buildybee">Buidybee</a></div>
Expand Down

0 comments on commit d4f4575

Please sign in to comment.