diff --git a/README.md b/README.md index a36a239..1e83e24 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: diff --git a/leaphymicropython/utils/boards_config.py b/leaphymicropython/utils/boards_config.py index 07689b5..b5cc541 100644 --- a/leaphymicropython/utils/boards_config.py +++ b/leaphymicropython/utils/boards_config.py @@ -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"