Dies ist eine alte Version des Dokuments!
python3 -m venv venv source venv/bin/activate pip3 install esphome
Mittlerweile Minimun Python Version für esphome ist 3.8:
python3.9 -m venv venv source venv/bin/activate pip3.9 install esphome
python3.11 -m venv venv source venv/bin/activate pip3.11 install esphome
esphome run source.yaml
Einstellungen→ Zusaetzliche Boardverwalter-URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json
Boardverwaltung ESP82 → Installieren
Projekt: ESPHome Multisensor
Projekt Sourcecode YAML: https://gist.github.com/Resinchem/b56296f7d645e477f7eeada13d986f39
rotation: 0-Hochkant (USB unten), 90-Quer (USB rechts)
Roboto Font Size 40 = 30 Punkte Zeilenabstand. 0,0 links oben, USB unten)
0,0 immer links oben, egal was für eine Rotation
Farben:
auto black = Color(0, 0, 0);
auto red = Color(255, 0, 0);
auto green = Color(0, 255, 0);
auto blue = Color(0, 0, 255);
auto white = Color(255, 255, 255);
it.print(5, 5, id(font1), "Zeile1");
it.print(5, 35, id(font1), "Zeile2");
it.print(5, 70, id(font1), "Zeile3");
it.print(5, 105, id(font1), "Zeile4");
it.print(5, 140, id(font1), "Zeile5");
Drei Kreise in der Mitte, abstand 30 Punkte
it.filled_circle(it.get_width() / 2 -30, it.get_height() /2, 20, red);
it.filled_circle(it.get_width() / 2 + 30, it.get_height() /2, 20, blue);
it.filled_circle(it.get_width() / 2, it.get_height() /2, 20, green);