Skip to main content

Crate embassy_rp_hc05

Crate embassy_rp_hc05 

Source
Expand description

§embassy-rp-hc05

Wrapper async no_std pour le module Bluetooth HC-05 testé sur microcontrôleur RP2040 / RP235x, basé sur le framework Embassy.

§Câblage minimal

RP2040          HC-05
──────          ─────
TX (GP0)  ───►  RX
RX (GP1)  ◄───  TX
3.3V      ───►  VCC  (ou 5V selon module)
GND       ───►  GND
GP2 (opt) ◄───  STATE  (HIGH = connecté)

§Utilisation rapide

let uart = Uart::new(p.UART0, p.PIN_0, p.PIN_1, Irqs, p.DMA_CH0, p.DMA_CH1, uart_config);
let mut bt = BluetoothHandler::new(uart, None);
bt.send_line("Hello!").await.unwrap();

Structs§

BluetoothHandler
Wrapper principal pour le module HC-05.

Enums§

BluetoothError
Erreurs possibles du wrapper HC-05.