Browse Source

Add missing headers

mcspr-patch-1
Maxim Prokhorov 4 years ago
committed by Max Prokhorov
parent
commit
455b5b1abc
6 changed files with 34 additions and 3 deletions
  1. +2
    -3
      code/espurna/encoder.cpp
  2. +16
    -0
      code/espurna/encoder.h
  3. +2
    -0
      code/espurna/lightfox.cpp
  4. +11
    -0
      code/espurna/lightfox.h
  5. +2
    -0
      code/espurna/main.cpp
  6. +1
    -0
      code/test/build/light_dimmer.h

+ 2
- 3
code/espurna/encoder.cpp View File

@ -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;


+ 16
- 0
code/espurna/encoder.h View File

@ -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
- 0
code/espurna/lightfox.cpp View File

@ -6,6 +6,8 @@ Copyright (C) 2019 by Andrey F. Kupreychik <foxle@quickfox.ru>
*/
#include "lightfox.h"
#ifdef FOXEL_LIGHTFOX_DUAL
// -----------------------------------------------------------------------------


+ 11
- 0
code/espurna/lightfox.h View File

@ -0,0 +1,11 @@
/*
LightFox module
Copyright (C) 2019 by Andrey F. Kupreychik <foxle@quickfox.ru>
*/
#include "espurna.h"
void lightfoxSetup();

+ 2
- 0
code/espurna/main.cpp View File

@ -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"


+ 1
- 0
code/test/build/light_dimmer.h View File

@ -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

Loading…
Cancel
Save