Add further includes.

pull/814/head
Travis J Dean 2020-03-26 04:49:35 -04:00
rodzic f2329476ec
commit c6ea2dff8a
4 zmienionych plików z 23 dodań i 1 usunięć

Wyświetl plik

@ -1,4 +1,5 @@
#include "wled.h"
#include <Arduino.h>
#include "wled_led.h"
#include "wled_ir.h"
#include "wled_notify.h"

Wyświetl plik

@ -1,6 +1,9 @@
#include "wled_blynk.h"
#include "const.h"
#include "wled.h"
#include "src/dependencies/blynk/Blynk/BlynkHandlers.h"
#include "wled_led.h"
#include "wled_colors.h"
uint16_t blHue = 0;
byte blSat = 255;

Wyświetl plik

@ -1,5 +1,8 @@
#include "wled_ir.h"
#include "wled.h"
#include "wled_led.h"
#include "wled_colors.h"
#include "wled_eeprom.h"
#if defined(WLED_DISABLE_INFRARED)
void handleIR(){}
@ -34,7 +37,7 @@ bool decodeIRCustom(uint32_t code)
//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;
if (new_val > higherBoundary) new_val = higherBoundary;

Wyświetl plik

@ -1,9 +1,24 @@
#ifndef WLED_IR_H
#define WLED_IR_H
#include <Arduino.h>
/*
* 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();
#endif //WLED_IR_H