L511C-Y6 Peripheral Mapping
Applies to L511C-Y6E (SDK target L511C_Y6E). Check pin multiplexing against the module specification and board schematic.
GPIOโ
| Tuya Pin | Default function | GPIO/PAD | Notes |
|---|---|---|---|
| 16 | NET_STATUS | GPIO14 | Network indicator; network-light control unsupported in versions 0.0.4 and earlier, per reference |
| 19 | MAIN_DTR | PAD0 | Reserved for low-power module wakeup; not general GPIO |
| 20 | MAIN_RI | GPIO11 / PAD4 | MCU wakeup |
| 21 | MAIN_DCD | GPIO18 | |
| 22 | MAIN_CTS | GPIO19 | I2C1 multiplexing pin in the reference |
| 23 | MAIN_RTS | GPIO20 | I2C1 multiplexing pin in the reference |
| 25 | STATUS | GPIO12 / PAD5 | Multiplexed with PWM2 |
ADCโ
ADC ports 0 and 1 support tkl_adc_read_voltage(), which reads voltage in millivolts. tkl_adc_read_data() and tkl_adc_read_single_channel() are not supported.
PWMโ
| Tuya PWM | Tuya Pin | PWM channel |
|---|---|---|
| 0 | 28 | PWM0 |
| 1 | 29 | PWM1 |
| 2 | 25 | PWM2 |
| 3 | 20 | PWM3 |
| 4 | 16 | PWM4 |
The SDK supports basic channel control; multi-channel, polarity, and capture interfaces are unsupported.
I2Cโ
The current SDK does not support I2C master transfers; the relevant APIs return OPRT_NOT_SUPPORTED.
SPIโ
The current SDK does not support SPI.
UARTโ
The UART interface pin mapping is not provided.
I2Sโ
I2S wiring information is not provided.