Search found 4 matches
- Wed Mar 10, 2021 8:42 am
- Forum: Raspberry Pi microcontroller boards
- Topic: LCD1602 error I2C
- Replies: 10
- Views: 16258
- Tue Mar 09, 2021 3:15 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: LCD1602 error I2C
- Replies: 10
- Views: 16258
Re: LCD1602 error I2C
Code: Select all
import machine
sda=machine.Pin(0)
scl=machine.Pin(1)
i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)
print(i2c.scan())
Code: Select all
[39]
- Tue Mar 09, 2021 3:10 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: LCD1602 error I2C
- Replies: 10
- Views: 16258
- Tue Mar 09, 2021 3:03 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: LCD1602 error I2C
- Replies: 10
- Views: 16258
LCD1602 error I2C
when i try to use my code to get started with using a lcd screen with my pico i get a error code import machine sda=machine.Pin(0) scl=machine.Pin(1) i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000) i2c.writeto(114, '\x7C') i2c.writeto(114, '\x2D') print(I2C.scan()) Traceback (most recent call last)...