ESP32, UART, uart_queue_events
0. 참고 사이트
- esp-idf\examples\peripherals\uart_events
- https://github.com/espressif/esp-idf/tree/master/examples/peripherals/uart_events
1. 모듈
2. 보드 연결
UART2 line를 사용합니다.
Tx 17, Rx 16
Tx 17, Rx 16
3. 소스
https://github.com/sglee0223/esp32/tree/master/uart_queue_events
4. 결과 화면
stm32f1 보드가 500ms마다 Tx를 하면
A thread 에서 QueueEvent를 통해 Rx를 하며
B thread에서는 500ms마다 Tx를 합니다.
'ESP32' 카테고리의 다른 글
ESP32, Bluetooth, ble_ibeacon (0) | 2018.08.20 |
---|---|
ESP32, UART, uart_nonblocking_select (0) | 2018.08.19 |
ESP32, I2C, SSD1306 OLED (0) | 2018.08.17 |
ESP32, I2C, LCD1602 (0) | 2018.08.16 |
ESP32, GPIO, LED Blink (0) | 2018.08.16 |