irrigation-system

frozendragon authored 12 hours ago
.idea init 6 days ago
code Added c++ code to toggle 12 hours ago
config Added c++ code to toggle 12 hours ago
CMakeLists.txt Added c++ code to toggle 12 hours ago
Makefile Added c++ code to toggle 12 hours ago
README.md Added c++ code to toggle 12 hours ago
bluetooth-proxy.yaml Adding c++ code for controlling the esp32 2 days ago
docker-compose.yaml Adding c++ code for controlling the esp32 2 days ago
encryption key.txt init 6 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);