SBUS Example#
Overview#
This sample sends SBUS frames through UART3 and changes channel values dynamically when a button is pressed.
Source file: src/rtsmart/examples/peripheral/sbus/test_sbus.c
Default Mapping#
GPIO21as button inputPIN50->UART3_TXDPIN51->UART3_RXD
Key APIs#
drv_fpioa_set_pin_func()drv_gpio_inst_create()/drv_gpio_value_get()sbus_create()/sbus_destroy()sbus_set_channel()/sbus_send_frame()
Build and Run#
cd src/rtsmart/examples/peripheral/sbus
make
./test_sbus
The sample has no command-line parameters.
