change structure continued
This commit is contained in:
47
libraries/includes/defines.h
Normal file
47
libraries/includes/defines.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* defines.h
|
||||
*
|
||||
* Created on: Aug 20, 2017
|
||||
* Author: wn
|
||||
*/
|
||||
|
||||
#ifndef DEFINES_H_
|
||||
#define DEFINES_H_
|
||||
|
||||
#define DEBUG
|
||||
|
||||
|
||||
|
||||
// #define WS2811
|
||||
#define PL9823
|
||||
|
||||
#define NODEMCU
|
||||
// #define ESP01
|
||||
|
||||
|
||||
#define EEPROM_ADDR 0
|
||||
|
||||
#ifdef ESP01
|
||||
#define CONFIG_SWITCH 0 // Arduino numbering
|
||||
#endif
|
||||
#ifdef NODEMCU
|
||||
#define CONFIG_SWITCH D2
|
||||
#endif
|
||||
|
||||
#ifdef WS2811
|
||||
#define PIXEL_PIN 1 // NODEMCU numbering
|
||||
#endif
|
||||
|
||||
#ifdef PL9823
|
||||
#ifdef ESP01
|
||||
#define PIXEL_PIN 2
|
||||
#endif
|
||||
#ifdef NODEMCU
|
||||
#define PIXEL_PIN D1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define NUM_OF_LEDs 16
|
||||
|
||||
|
||||
#endif /* DEFINES_H_ */
|
Reference in New Issue
Block a user