#ifndef _NODE_DEF_ #define _NODE_DEF_ /* * Project : mainHome * Authors : C.Varin * File : mCube_ligth.ino * Abstract : Arduino sketch designed for NodeMCU ESP8266. * The aim is to make a http client/server making * request to a nodejs server. * * The user can control only two strips to generate light. * A servo motor controle the light's mechanical part when opening or closing. * // The strip is composed of 8 rgb leds : * ________________________ * | UPPER STRIP | * DIN --> LED0 -> ... -> LED15 * * ________________________ * | LOWER STRIP | * DIN --> LED0 -> ... -> LED15 * * Date : 05-26-2017 * */ /*--------------------------------------------------------- * Defines *-------------------------------------------------------*/ #define CLOSE_OFF 0 #define OPEN_FULL_WHITE 1 #define OPEN_L_WHITE 2 #define OPEN_U_WHITE 3 #define OPEN_FULL_COLOR 4 #define OPEN_L_COLOR 5 #define OPEN_U_COLOR 6 #define CLOSE_L_WHITE 7 #define CLOSE_U_WHITE 8 #define CLOSE_FULL_WHITE 9 #define CLOSE_L_COLOR 10 #define CLOSE_U_COLOR 11 const uint8_t L_STRIP_PIN = 5; // pin used to control the cross strip. const uint8_t U_STRIP_PIN = 0; // pin used to control the ring strip const uint16_t STRIP_SIZE = 16; // number of rgb led used by the strip. /* * define the node ID * NODE_ID = XYYZZZAAAA * X => Type : 0 = node, ... * YY => HW : 01 = Raspberry, 02 = ESP8266, 03 = Arduino ... * ZZZ => version : 000 = 0.0.0, 002 = 0.0.2 ... * AAAA => node identifier */ String NODE_ID = "1020010001"; #endif