vladisenko / EachiWhoop

Micro size flight controller board for Eachine E010 frame.
27 stars 7 forks source link

Support OSD to work with smart audio #3

Open jack113113 opened 6 years ago

jack113113 commented 6 years ago

Hello i building FC from your project , i want to use Smartaudio and See infor on OSD . Can you support SPI OSD ?

vladisenko commented 6 years ago

Hi. In my published version of the hardware there is no OSD chip. So, it's will not be supported in the firmware. But you can add it yourself.

  1. Add "drivers/max7456.c" to "TARGET_SRC" in the file "target.mk"
  2. Add defines for max7456 driver in the file "target.h":

define USE_MAX7456

define MAX7456_SPI_INSTANCE SPI1 // or other SPI instance

define MAX7456_SPI_CS_PIN PB1 // or other pin which connected to the CS of MAX7456

define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz

define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)

  1. Rebuild firmware
jack113113 commented 6 years ago

yeah . thank your help