added blueprint rp2040 image, fixed mispelt pin numbers on first motor example code

master
Jake 2025-08-03 13:02:13 +08:00
parent 7e8a2b5666
commit 6f84d1070a
2 changed files with 4 additions and 4 deletions

BIN
images/rp2040zero.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -30,7 +30,7 @@
<button class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson8">Sonar</button> <button class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson8">Sonar</button>
<button class="tab-btn text-gray-600 hover:text-blue-600 hidden" data-target="lesson9">Motor <button class="tab-btn text-gray-600 hover:text-blue-600 hidden" data-target="lesson9">Motor
Encoders</button> Encoders</button>
<button class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson10">Reciever</button> <button hidden class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson10">Reciever</button>
<button class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson11">PID</button> <button class="tab-btn text-gray-600 hover:text-blue-600" data-target="lesson11">PID</button>
<!-- Add more tabs here --> <!-- Add more tabs here -->
</div> </div>
@ -84,7 +84,7 @@
</ol> </ol>
</div> </div>
<div> <div>
<img src="images/rp2040.jpg" alt="Robot moving further" <img src="images/rp2040zero.png" alt="Robot moving further"
class="rounded shadow w-full max-w-xs md:max-w-full" /> class="rounded shadow w-full max-w-xs md:max-w-full" />
</div> </div>
@ -200,8 +200,8 @@ import board
import pwmio import pwmio
import time import time
motorIN1 = pwmio.PWMOut(board.IO8, frequency=1000, duty_cycle=0) motorIN1 = pwmio.PWMOut(board.GP8, frequency=1000, duty_cycle=0)
motorIN2 = pwmio.PWMOut(board.IO9, frequency=1000, duty_cycle=0) motorIN2 = pwmio.PWMOut(board.GP9, frequency=1000, duty_cycle=0)
# DRIVE FORWARD # DRIVE FORWARD