Skip to content

Commit

Permalink
fix: unique id rp2040 nano conenct
Browse files Browse the repository at this point in the history
  • Loading branch information
boutreet committed Nov 22, 2024
1 parent 85b4618 commit 422cf9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ Start by importing the required libraries:
from time import sleep
from leaphymicropython.actuators.dcmotor import DCMotor
from leaphymicropython.sensors.sonar import read_distance
Initialize the motor and sensor:
```
## Use a loop to continuously read the distance and control the motor based on the distance:
```py
Expand Down Expand Up @@ -273,7 +273,7 @@ from time import sleep
from leaphymicropython.actuators.rgbled import RGBLed
```
## Initialize the RGB LED:
## Initialize the RGB LED:
Create an RGBLed object by specifying the pins connected to the red, green, and blue channels:
Expand Down
2 changes: 1 addition & 1 deletion leaphymicropython/utils/boards_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_board_type():
board = "RP_NANO_MAKER"
elif str(decoded_id).startswith("E66164"):
board = "PICO_W"
elif str(decoded_id).startswith("503533"):
elif str(decoded_id).startswith("503"):
board = "NANO_CONNECT"
if str(decoded_id).startswith("E66054"):
board = "PICO"
Expand Down

0 comments on commit 422cf9d

Please sign in to comment.