Skip to content

Instantly share code, notes, and snippets.

flowchart TD
  A[Start / Power on] --> B[Init peripherals]
  B --> C[Configure BMI160: ODR=1600Hz, Range, FIFO enable]
  C --> D[Config BMI160 INT threshold = 5 m/s2]
  D --> E[Configure ESP-NOW, Relay GPIO]
  E --> F[Configure wake sources: Timer 10min & GPIO INT]
  F --> G[Enter Deep Sleep]