mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
make standalone build compile again
This commit is contained in:
@@ -125,8 +125,11 @@ uint32_t analogReadMilliVolts(uint8_t pin) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation) {
|
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation){};
|
||||||
}
|
void analogSetAttenuation(adc_attenuation_t attenuation){};
|
||||||
|
void dacWrite(uint8_t pin, uint8_t value){};
|
||||||
void analogSetAttenuation(adc_attenuation_t attenuation) {
|
double ledcSetup(uint8_t chan, double freq, uint8_t bit_num) {
|
||||||
}
|
return 0;
|
||||||
|
};
|
||||||
|
void ledcAttachPin(uint8_t pin, uint8_t chan){};
|
||||||
|
void ledcWrite(uint8_t chan, uint32_t duty){};
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ uint32_t analogReadMilliVolts(uint8_t pin);
|
|||||||
typedef enum { ADC_0db, ADC_2_5db, ADC_6db, ADC_11db } adc_attenuation_t;
|
typedef enum { ADC_0db, ADC_2_5db, ADC_6db, ADC_11db } adc_attenuation_t;
|
||||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation);
|
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation);
|
||||||
void analogSetAttenuation(adc_attenuation_t attenuation);
|
void analogSetAttenuation(adc_attenuation_t attenuation);
|
||||||
|
void dacWrite(uint8_t pin, uint8_t value);
|
||||||
|
double ledcSetup(uint8_t chan, double freq, uint8_t bit_num);
|
||||||
|
void ledcAttachPin(uint8_t pin, uint8_t chan);
|
||||||
|
void ledcWrite(uint8_t chan, uint32_t duty);
|
||||||
|
|
||||||
#define PROGMEM
|
#define PROGMEM
|
||||||
#define PGM_P const char *
|
#define PGM_P const char *
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class DummySettings {
|
|||||||
bool ha_enabled = true;
|
bool ha_enabled = true;
|
||||||
String base = "ems-esp";
|
String base = "ems-esp";
|
||||||
bool publish_single = false;
|
bool publish_single = false;
|
||||||
|
bool publish_single2cmd = false;
|
||||||
bool send_response = true;
|
bool send_response = true;
|
||||||
String host = "192.168.1.4";
|
String host = "192.168.1.4";
|
||||||
uint16_t port = 1883;
|
uint16_t port = 1883;
|
||||||
|
|||||||
Reference in New Issue
Block a user