irrigation-system

frozendragon authored 12 hours ago
.idea Fully works with one valve now 12 hours ago
code Fully works with one valve now 12 hours ago
config Fully works with one valve now 12 hours ago
CMakeLists.txt Added c++ code to toggle 3 days ago
Makefile Fully works with one valve now 12 hours ago
README.md Added c++ code to toggle 3 days ago
bluetooth-proxy.yaml Adding c++ code for controlling the esp32 5 days ago
docker-compose.yaml Adding c++ code for controlling the esp32 5 days ago
encryption key.txt init 9 days ago
README.md

How to clean build cache

docker-compose exec esphome rm -rf /config/.esphome/build

docker-compose exec esphome rm -rf /config/.esphome/platformio

docker-compose exec esphome rm -rf /root/.platformio

docker-compose exec esphome esphome compile irrigation-system-controller.yaml

Framework (esp-idf vs arduino)

arduino is more beginner friendly, esp-idf offers more control.

The code between the frameworks are completely different. Here is an example

arduino

pinMode(5, OUTPUT); // Set GPIO5 as output digitalWrite(5, HIGH); // Set GPIO5 HIGH

esp-idf

gpio_set_direction(GPIO_NUM_5, GPIO_MODE_OUTPUT); gpio_set_level(GPIO_NUM_5, 1);