; 20260413 ChatGPT
; Exercise 20_microphone

[platformio]
default_envs = guy

[env]
platform = espressif32
framework = arduino
board = esp32-s3-devkitc-1
board_build.partitions = default_8MB.csv
monitor_speed = 115200
extra_scripts = pre:scripts/set_build_epoch.py
lib_deps =
  Wire
  olikraus/U8g2@^2.36.4
  lewisxhe/XPowersLib@0.3.3

build_flags =
  -I ../../shared/boards
  -I ../../external/microReticulum_Firmware
  -D BOARD_MODEL=BOARD_TBEAM_S_V1
  -D ARDUINO_USB_MODE=1
  -D ARDUINO_USB_CDC_ON_BOOT=1
  -D MIC_SAMPLE_RATE=16000
  -D MIC_BITS_PER_SAMPLE=16
  -D MIC_RECORD_SECONDS=30
  -D MIC_IDLE_SECONDS=30
  -D MIC_DATA_PIN=39
  -D MIC_CLK_PIN=38
  -D MIC_SELECT_PIN=48
  -D MIC_SELECT_LEFT=1

[env:amy]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"AMY\"
  -D NODE_LABEL=\"Amy\"

[env:bob]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"BOB\"
  -D NODE_LABEL=\"Bob\"

[env:cy]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"CY\"
  -D NODE_LABEL=\"Cy\"

[env:dan]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"DAN\"
  -D NODE_LABEL=\"Dan\"

[env:ed]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"ED\"
  -D NODE_LABEL=\"Ed\"

[env:flo]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"FLO\"
  -D NODE_LABEL=\"Flo\"

[env:guy]
extends = env
build_flags =
  ${env.build_flags}
  -D BOARD_ID=\"GUY\"
  -D NODE_LABEL=\"Guy\"
