# 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

- `GPIO21` as button input
- `PIN50` -> `UART3_TXD`
- `PIN51` -> `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

```shell
cd src/rtsmart/examples/peripheral/sbus
make
./test_sbus
```

The sample has no command-line parameters.
