initial, copied from rgbled

This commit is contained in:
2020-07-26 22:48:31 +02:00
commit 351dc80315
8 changed files with 408 additions and 0 deletions

View 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 300
#endif /* DEFINES_H_ */