Search found 4 matches

by Maarten_apd
Wed Mar 10, 2021 8:42 am
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 10
Views: 16258

Re: LCD1602 error I2C

this is the lcd with controller i use
by Maarten_apd
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]
the scan worked with this code with the other one it din't work
by Maarten_apd
Tue Mar 09, 2021 3:10 pm
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 10
Views: 16258

Re: LCD1602 error I2C

after the change i got the same error
by Maarten_apd
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)...