This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
/
RGBWWCtrl.h
66 lines (57 loc) · 1.63 KB
/
RGBWWCtrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* @file
* @author Patrick Jahns http://github.com/patrickjahns
*
* @section LICENSE
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details at
* https://www.gnu.org/copyleft/gpl.html
*
* @section DESCRIPTION
*
*
*/
#ifndef RGBWWCTRL_H_
#define RGBWWCTRL_H_
//default defines
#define CLEAR_PIN 16
#define DEFAULT_AP_IP "192.168.4.1"
#define DEFAULT_AP_SECURED false
#define DEFAULT_AP_PASSWORD "rgbwwctrl"
#define DEFAULT_AP_SSIDPREFIX "RGBWW"
#define DEFAULT_API_SECURED false
#define DEFAULT_API_PASSWORD "rgbwwctrl"
#define DEFAULT_CONNECTION_RETRIES 10
#define DEFAULT_OTA_URL "http://patrickjahns.github.io/esp_rgbww_firmware/release/version.json"
// RGBWW related
#define DEFAULT_COLORTEMP_WW 2700
#define DEFAULT_COLORTEMP_CW 6000
#define BLUEPIN 14
#define GREENPIN 12
#define REDPIN 13
#define WWPIN 5
#define CWPIN 4
#define PWM_FREQUENCY 339
#define RGBWW_USE_ESP_HWPWM
// Debugging
#define DEBUG_APP 0
//includes
#include <user_config.h>
#include <debugutils.h>
#include <RGBWWLed/RGBWWLed.h>
#include <SmingCore/SmingCore.h>
#include <otaupdate.h>
#include <config.h>
#include <ledctrl.h>
#include <networking.h>
#include <webserver.h>
#include <application.h>
#endif /* RGBWWCTRL_H_ */