From b8d4e9fef8c4e9dea6a228349cc935cec8e92b9d Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Tue, 13 Dec 2016 22:18:07 +0100 Subject: [PATCH] added BBQ hardware --- things/HardwareWittyBbq.h | 32 ++++++++++++++++++++++++++++++++ things/things.ino | 1 + 2 files changed, 33 insertions(+) create mode 100644 things/HardwareWittyBbq.h diff --git a/things/HardwareWittyBbq.h b/things/HardwareWittyBbq.h new file mode 100644 index 0000000..6230fdf --- /dev/null +++ b/things/HardwareWittyBbq.h @@ -0,0 +1,32 @@ +/* + * Witty Cloud + * development board, featuring RGB LED, LDR and a button + * + * Settings in IDE: + * - Board: "WeMos D1 R2 & mini" + */ + +#include "DeviceRgb.h" +#include "DeviceLdr.h" +#include "DeviceButton.h" + +const char* FWNAME = "things@Witty"; + +const byte PIN_RGB_RED = D8; +const byte PIN_RGB_GREEN = D6; +const byte PIN_RGB_BLUE = D7; +DeviceRgb deviceRgb(PIN_RGB_RED, PIN_RGB_GREEN, PIN_RGB_BLUE); + +const byte PIN_LDR = A0; +DeviceLdr deviceLdr(PIN_LDR); + +const byte PIN_BUTTON = D2; +DeviceButton deviceButton(PIN_BUTTON); + +Device* devices[] = { + &deviceRgb, + &deviceLdr, + &deviceButton, +}; + +void hardwareSetup() {}; diff --git a/things/things.ino b/things/things.ino index 98acf58..c67bbc7 100644 --- a/things/things.ino +++ b/things/things.ino @@ -3,6 +3,7 @@ #include "HardwareWitty.h" //#include "HardwareWittyDht.h" //#include "HardwareWittyDhtIrRxTx.h" +//#include "HardwareWittyBbq.h" //#include "HardwareH801wifi.h" const char* FWVERSION = "1.0.0";