#!/bin/zsh # ESP-IDF Environment Setup Script for zonebridge project # Source this script from your terminal: . ./setup_esp_env.sh export IDF_PATH="/Users/brent/esp/v5.5.1/esp-idf" export IDF_TOOLS_PATH="/Users/brent/.espressif" export IDF_TARGET="esp32s3" echo "Setting up ESP-IDF environment..." echo "IDF_PATH: $IDF_PATH" echo "IDF_TOOLS_PATH: $IDF_TOOLS_PATH" echo "IDF_TARGET: $IDF_TARGET" # Source the ESP-IDF export script if [ -f "$IDF_PATH/export.sh" ]; then . "$IDF_PATH/export.sh" echo "✓ ESP-IDF environment initialized successfully" else echo "✗ Error: ESP-IDF export script not found at $IDF_PATH/export.sh" return 1 fi # Verify the setup if command -v idf.py &> /dev/null; then echo "✓ idf.py is available" echo "" echo "Ready to build! Try: idf.py build" else echo "⚠ Warning: idf.py not found in PATH" fi