thermferm/lcd-pcf8574.h

Sat, 14 Jul 2018 21:15:20 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 14 Jul 2018 21:15:20 +0200
changeset 534
92b546d4a839
parent 426
e54611453d29
permissions
-rw-r--r--

Versie 0.6.4. Aan de global setup de MQTT instellingen toegevoegd. Die zijn er ook als MQTT niet op het systeem aanwezig is. Indien het de global setup wijzigd, wordt de MQTT verbinding opnieuw gemaakt.

#ifndef	LCD_PCF8574_H
#define	LCD_PCF8574_H


#ifdef HAVE_WIRINGPI_H

// Defines for the pcf8574 Pi LCD interface board
#define AF_BASE         100

#define AF_RS           (AF_BASE + 0)
#define AF_RW           (AF_BASE + 1)
#define AF_E            (AF_BASE + 2)
#define AF_BACKLIGHT    (AF_BASE + 3)
#define AF_DB4          (AF_BASE + 4)
#define AF_DB5          (AF_BASE + 5)
#define AF_DB6          (AF_BASE + 6)
#define AF_DB7          (AF_BASE + 7)

#endif

void setBacklight (int);
int  initLCD (int, int);


#endif

mercurial