Skip to content

Commit

Permalink
Add further includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisDean committed Mar 26, 2020
1 parent f232947 commit c6ea2df
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions wled00/wled.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "wled.h"
#include <Arduino.h>
#include "wled_led.h"
#include "wled_ir.h"
#include "wled_notify.h"
Expand Down
3 changes: 3 additions & 0 deletions wled00/wled_blynk.cpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 4 additions & 1 deletion wled00/wled_ir.cpp
Original file line number Diff line number Diff line change
@@ -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(){}
Expand Down Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions wled00/wled_ir.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c6ea2df

Please sign in to comment.