|
Hi. I purchased the Adeept Starter Kit for Raspberry Pi which has a 1602 display module. I download the zip file for the tutorial/code/wiring diagram.
The zip package seems to be aimed for using the Raspberry Pi 3,4, etc. I have a Pico W which has different pin configuration. I connected the 1602 to the Pico W as follows:
1602 (D4 - pin 6) <-> Pico GP17 (pin 22)
1602 (D5 - pin 5) <-> Pico GP18 (pin 24)
1602 (D6 - pin 4) <-> Pico GP27 (pin 32)
1602 (D7 - pin 3) <-> Pico GP22 (pin 29)
1602 (E - pin 11) <-> Pico GP15 (pin 20)
1602 (RS - pin 13) <-> Pico GP14 (pin 19)
Using Thonny, I used the code in the zip file and received the following error message:
Traceback (most recent call last):
File "<stdin>", line 268, in <module>
File "<stdin>", line 255, in loop
File "<stdin>", line 61, in __init__
ImportError: no module named 'RPi'
Is the reason for this because I'm using MicroPython and not the full blown Python? If so, where/how can I load the library?
Also, the code in the Python program seems to match my pin assignments:
def __init__(self, pin_rs=14, pin_e=15, pins_db=[17, 18, 27, 22], GPIO = None):
Any help would be appreciated!
Thank yoU!
|
|