![]() |
ACwing Flow bridge firmware
STM32C011: PMW3901 optical flow over SPI, I2C target 0x3B
|
Generated by Doxygen from 01 - FLOW_FW/Core. The bridge reads the PMW3901 over SPI and serves the accumulated motion as an I²C target at 0x3B.
| File | Content |
|---|---|
flow_regs.h | the I²C register map, shared with the FC driver flow_bridge.h |
bridge.c | register file and I²C target protocol (portable, host-tested) |
pmw3901.c | PMW3901 driver: power-up, register sequence, motion burst |
main.c | clocks, pins, SPI1, I2C1 interrupt, main loop, IWDG, LED |