By following your tutorial and successfully installing Rpi-hw, I tried to hook up my HD44780 display (20x4) to my Rpi. No result came out of it, no error and no output on the console or on the display. First I thought something was wrong in the wiring, nope. I triple checked every single wire. Then I tried the 8-bit initialization instead of the 4-bit. And still no result, trying some stuff with the init method (20,4 and 20,2 not working). The last thing that I thought, was that the library wasn't installed correctly. So I checked by blinking an LED, which worked. So what am I doing wrong here or is the display I'm using not supported?
Link to the HD44780 display.
g++ `pkg-config --libs --cflags rpi-hw` main.cpp -o result
// Include Rpi-hw headers
#include <rpi-hw.hpp>
#include <rpi-hw/display/hd44780.hpp>
// Use Rpi-hw namespace
using namespace rpihw;
using namespace std;
int main(int argc, char *args[]) {
cout << \"This is the main integer." << endl;
// Create display controller
display::hd44780 dev(14, 18, 23, 24, 2, 3, 4, 17, 21, 22); // Doesn't work
//display::hd44780 dev(14, 18, 4, 17, 21, 22); Doesn't work either
// Initialize 20x4 display
dev.init(20, 4);
// Move the cursor position
dev.move(2, 0);
// Write a string at cursor position
dev.write("Hello world!");
cout << "Finished." << endl;
return 0;
}