mrmorphic / hwio

Go library for hardware I/O control, in the programming style of Arduino
BSD 3-Clause "New" or "Revised" License
328 stars 40 forks source link

createChar for HD44780 #45

Open Cruiser79 opened 7 years ago

Cruiser79 commented 7 years ago

In hd44780_i2c.go i found a commented function createChar, which seems to be the functionality of the display, to create an own character. Why is this method commented? It is a nice feature i need.

mrmorphic commented 7 years ago

I don't remember the exact reason; it would have been because it didn't work on a test device, or it needs more work. One thing that stands out is that it assumes only 8 locations, which probably won't hold for different display sizes. If you uncomment that locally, does it actually do what you want?

Cruiser79 commented 7 years ago

Till now i am in the finding phase for the right library. My display is on his way to me. So, i will try it. I thought, the reason was more clear.

mrmorphic commented 7 years ago

I found that sometimes I can get stuff working by writing to the hardware spec, but often when you get an actual device, it doesn't work according to the spec, because the hardware has some changes to it. I have found this on devices claiming to be HD44780 compatible, and also on some i2c devices. So some of the code is done by trial and error, and feedback from people like yourself who get an actual device to work. There are way too many devices for me to make them all work myself.