Bluetooth serial communication between RP2040 using HC-04 Bluetooth Module, in BLE/SPP mode.
Last post show a simple example of Serial communication between two RP2040 (Arduino Framework) . With HC-04 Dual Mode Bluetooth Module (SPP/BLE) , it's easy to implement bluetooth serial communication without change in code. For the Arduino code Serial_9600N81_SH1107.ino and SerialPassthrough_9600N81.ino, refer to last post . Setup Test Host (ttyACM0) Test Host (ttyACM1) | | +-----------+ +-------+ +-------+ +-----------+ |Slave | |HC-04 | |HC-04 | |Master | | TX|---|RX | Bluetooth | RX|---|TX | | RX|---|TX |<~~~SPP/BLE~~~>| TX|---|RX | | 3V3|---|VCC | | VCC|---|3V3 | | GND|---|GND | | GND|---|GND | | | +-------+ +-------+ | | +-----------+ +-----------+ +-----------+ |SH1107 OLED| | | ...