Hello everyone,
I am having trouble running pico-2w-kit-main\micropython\7.7_game_guess_number.py
I get the following error messages:
Traceback (most recent call last):
File “”, line 8, in
File “lcd1602.py”, line 10, in init
File “lcd1602.py”, line 31, in scanAddress
ValueError: unknown format code ‘X’ for object of type ‘I2C’
Can anyone help?
We have tested the 7.7_game_guess_number.py example file and did not encounter any error messages.
Following the online tutorial wiring diagram, we downloaded the code package, extracted it, opened the 7.7_game_guess_number.py file, and ran it. It executed normally, and the modules worked properly.
However, the prerequisite is that you have followed the steps in the 1.4 tutorial to upload all files from the libs/ folder to your Pico. Please ensure you have completed this step:
Tutorial Link: Upload Libraries to Pico
Once all files in the libs/ folder have been uploaded to your Pico, please run the 7.7_game_guess_number.py code file again.