Hendrik Langer
7 years ago
5 changed files with 34 additions and 4 deletions
@ -1,11 +1,16 @@ |
|||||
#ifndef _HARDWARE_H |
#ifndef _HARDWARE_H |
||||
#define _HARDWARE_H |
#define _HARDWARE_H |
||||
|
|
||||
#define WIFI_SSID "ssid" |
#define WIFI_SSID "nether.net" |
||||
#define WIFI_PASSWORD "password" |
#define WIFI_PASSWORD "threepwood" |
||||
|
|
||||
#define LED_BUILTIN 13 |
#define LED_BUILTIN 13 |
||||
|
|
||||
static constexpr int SERVO_PINS[] = {5, 18, 24, 25}; |
static constexpr int SERVO_PINS[] = {23, 22, 1, 3, 21, 19}; |
||||
|
|
||||
|
static constexpr uint8_t LED_PIN = 4; |
||||
|
static constexpr uint8_t NUM_LEDS = 22; |
||||
|
#define LED_TYPE TM1829 |
||||
|
#define COLOR_ORDER BRG |
||||
|
|
||||
#endif /* _HARDWARE_H */ |
#endif /* _HARDWARE_H */ |
||||
|
@ -1,11 +1,17 @@ |
|||||
#ifndef _LED_H |
#ifndef _LED_H |
||||
#define _LED_H |
#define _LED_H |
||||
|
|
||||
|
#define FASTLED_ALLOW_INTERRUPTS 0 |
||||
|
#include <FastLED.h> |
||||
|
|
||||
|
#include "hardware.h" |
||||
|
|
||||
class Led { |
class Led { |
||||
public: |
public: |
||||
Led(void); |
Led(void); |
||||
void setup(void); |
void setup(void); |
||||
private: |
private: |
||||
|
CRGB leds[NUM_LEDS]; |
||||
}; |
}; |
||||
|
|
||||
#endif /* _LED_H */ |
#endif /* _LED_H */ |
||||
|
Loading…
Reference in new issue