From 92f7cab3d176934ffdaadd1d9e0cf3d574a8e7b0 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 15 Mar 2016 09:38:15 +0000 Subject: [PATCH] Initialise the main wiringPi library at the beginning. --- HD44780.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HD44780.cpp b/HD44780.cpp index 61cb670..0243a31 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -40,6 +40,8 @@ CHD44780::~CHD44780() bool CHD44780::open() { + wiringPiSetup(); + m_fd = ::lcdInit(m_rows, m_cols, 4, 11, 10, 0, 1, 2, 3, 0, 0, 0, 0); if (m_fd == -1) { LogError("Unable to open the HD44780");