Skip to content

Commit

Permalink
Add missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed May 1, 2020
1 parent 241b8a5 commit 731af34
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/espurna/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Copyright (C) 2018-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/

#if ENCODER_SUPPORT && (LIGHT_PROVIDER != LIGHT_PROVIDER_NONE)
#include "encoder.h"

#include "libs/Encoder.h"
#include <vector>
#if ENCODER_SUPPORT && (LIGHT_PROVIDER != LIGHT_PROVIDER_NONE)

struct encoder_t {
Encoder * encoder;
Expand Down
16 changes: 16 additions & 0 deletions code/espurna/encoder.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
ENCODER MODULE
Copyright (C) 2018-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/

#include "espurna.h"

#if ENCODER_SUPPORT && (LIGHT_PROVIDER != LIGHT_PROVIDER_NONE)
#include "libs/Encoder.h"
#include <vector>
#endif

void encoderSetup();
2 changes: 2 additions & 0 deletions code/espurna/lightfox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Copyright (C) 2019 by Andrey F. Kupreychik <foxle@quickfox.ru>
*/

#include "lightfox.h"

#ifdef FOXEL_LIGHTFOX_DUAL

// -----------------------------------------------------------------------------
Expand Down
11 changes: 11 additions & 0 deletions code/espurna/lightfox.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
LightFox module
Copyright (C) 2019 by Andrey F. Kupreychik <foxle@quickfox.ru>
*/

#include "espurna.h"

void lightfoxSetup();
2 changes: 2 additions & 0 deletions code/espurna/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "crash.h"
#include "debug.h"
#include "domoticz.h"
#include "encoder.h"
#include "homeassistant.h"
#include "i2c.h"
#include "influxdb.h"
#include "ir.h"
#include "led.h"
#include "light.h"
#include "lightfox.h"
#include "llmnr.h"
#include "mdns.h"
#include "mqtt.h"
Expand Down
1 change: 1 addition & 0 deletions code/test/build/light_dimmer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
#define LIGHT_CH3_PIN 12
#define LIGHT_CH4_PIN 13
#define LIGHT_CH5_PIN 14
#define ENCODER_SUPPORT 1
#define IR_SUPPORT 1

0 comments on commit 731af34

Please sign in to comment.