seanshpark / hwhobby

Hobby of small devices
Apache License 2.0
1 stars 3 forks source link

LCD-1602 support #2

Closed seanshpark closed 5 years ago

seanshpark commented 5 years ago

Support LCD-1602 with HD44780 controller by I2C

Modules to add: two in one

Interface for this time is I2C not GPIO.

seanshpark commented 5 years ago

I2C client detect

i2cdetect -y 1
seanshpark commented 5 years ago

Issue: i2cdetect program dumps very slow after using bcm2835_i2c_xxx()

Issue i2cdetect show the device has vanished after using bcm2835_i2c_xxx()

seanshpark commented 5 years ago

This device has logically same level of hwmodule that calls another hwmodule.

seanshpark commented 5 years ago

lcd1602 uses i2clcd module and hd44780

seanshpark commented 5 years ago

For RPi is done. Continue with STM32F103.

seanshpark commented 5 years ago

Blue backlight works with +5V. I2C interface with RPi needs voltage shifter

seanshpark commented 5 years ago

STM32F103 !

Need I2C library to encode byte to two SCL/SDA GPIO pins.

seanshpark commented 5 years ago

I2C with STM32F103 isn't simple cause of debugging with on-board LED.