1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00
This commit is contained in:
Otto Winter
2019-05-24 23:08:04 +02:00
parent 16c2929bb4
commit 12ff280d3b
3 changed files with 9 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ void setup() {
App.init_ota()->start_safe_mode();
// LEDC is only available on ESP32! for the ESP8266, take a look at App.make_esp8266_pwm_output().
auto *red = App.make_ledc_output(32); // on pin 32
auto *red = App.make_ledc_output(32); // on pin 32
auto *green = App.make_ledc_output(33);
auto *blue = App.make_ledc_output(34);
App.make_rgb_light("Livingroom Light", red, green, blue);
@@ -23,6 +23,4 @@ void setup() {
App.setup();
}
void loop() {
App.loop();
}
void loop() { App.loop(); }