Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I would like to use à KS108 compatible LCD on my board but the LCD only works at 5V. I would like to use an I2C IO expander (PCF8574) for the databus like that:
But I have some probleme with the library
Just a warning in the compilator "members and base-classes will be initialized in declaration order, not in member initialisation list order" in file "/KS0108.cpp", Line: 16, Col: 4""
and the mbed freeze...
KS0108.cpp
KS0108::KS0108 (PinName _DI, PinName _RW, PinName _E, PinName _CS2, PinName _CS1,PCF8574 _DB) : DI(_DI), RW(_RW), E(_E), CS2(_CS2), CS1(_CS1), DB(_DB) I think I need something here { //RST.mode(OpenDrain); DI.mode(OpenDrain); RW.mode(OpenDrain); E.mode(OpenDrain); CS2.mode(OpenDrain); CS1.mode(OpenDrain); KS108.h private: //BusInOut DB; PCF8574 DB; // DigitalInOut RST; // hardware reset PinName SDA; PinName SCL; DigitalInOut DI; DigitalInOut RW; DigitalInOut E; DigitalInOut CS2; DigitalInOut CS1;Sources files /media/uploads/GuiTwo/lcd-pcf.zip