Add further includes.
This commit is contained in:
parent
f2329476ec
commit
c6ea2dff8a
@ -1,4 +1,5 @@
|
|||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
#include <Arduino.h>
|
||||||
#include "wled_led.h"
|
#include "wled_led.h"
|
||||||
#include "wled_ir.h"
|
#include "wled_ir.h"
|
||||||
#include "wled_notify.h"
|
#include "wled_notify.h"
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#include "wled_blynk.h"
|
#include "wled_blynk.h"
|
||||||
|
#include "const.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
#include "src/dependencies/blynk/Blynk/BlynkHandlers.h"
|
#include "src/dependencies/blynk/Blynk/BlynkHandlers.h"
|
||||||
|
#include "wled_led.h"
|
||||||
|
#include "wled_colors.h"
|
||||||
|
|
||||||
uint16_t blHue = 0;
|
uint16_t blHue = 0;
|
||||||
byte blSat = 255;
|
byte blSat = 255;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#include "wled_ir.h"
|
#include "wled_ir.h"
|
||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
#include "wled_led.h"
|
||||||
|
#include "wled_colors.h"
|
||||||
|
#include "wled_eeprom.h"
|
||||||
|
|
||||||
#if defined(WLED_DISABLE_INFRARED)
|
#if defined(WLED_DISABLE_INFRARED)
|
||||||
void handleIR(){}
|
void handleIR(){}
|
||||||
@ -34,7 +37,7 @@ bool decodeIRCustom(uint32_t code)
|
|||||||
|
|
||||||
|
|
||||||
//relatively change brightness, minumum A=5
|
//relatively change brightness, minumum A=5
|
||||||
void relativeChange(byte* property, int8_t amount, byte lowerBoundary = 0, byte higherBoundary = 0xFF)
|
void relativeChange(byte* property, int8_t amount, byte lowerBoundary, byte higherBoundary)
|
||||||
{
|
{
|
||||||
int16_t new_val = (int16_t) *property + amount;
|
int16_t new_val = (int16_t) *property + amount;
|
||||||
if (new_val > higherBoundary) new_val = higherBoundary;
|
if (new_val > higherBoundary) new_val = higherBoundary;
|
||||||
|
@ -1,9 +1,24 @@
|
|||||||
#ifndef WLED_IR_H
|
#ifndef WLED_IR_H
|
||||||
#define WLED_IR_H
|
#define WLED_IR_H
|
||||||
|
#include <Arduino.h>
|
||||||
/*
|
/*
|
||||||
* Infrared sensor support for generic 24/40/44 key RGB remotes
|
* Infrared sensor support for generic 24/40/44 key RGB remotes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
bool decodeIRCustom(uint32_t code);
|
||||||
|
void relativeChange(byte* property, int8_t amount, byte lowerBoundary = 0, byte higherBoundary = 0xFF);
|
||||||
|
void changeEffectSpeed(int8_t amount);
|
||||||
|
void changeEffectIntensity(int8_t amount);
|
||||||
|
void decodeIR(uint32_t code);
|
||||||
|
void decodeIR24(uint32_t code);
|
||||||
|
void decodeIR24OLD(uint32_t code);
|
||||||
|
void decodeIR24CT(uint32_t code);
|
||||||
|
void decodeIR40(uint32_t code);
|
||||||
|
void decodeIR44(uint32_t code);
|
||||||
|
void decodeIR21(uint32_t code);
|
||||||
|
void decodeIR6(uint32_t code);
|
||||||
|
|
||||||
|
void initIR();
|
||||||
void handleIR();
|
void handleIR();
|
||||||
|
|
||||||
#endif //WLED_IR_H
|
#endif //WLED_IR_H
|
Loading…
Reference in New Issue
Block a user