Elec Freaks Bluetooth Modem Manuale Utente Pagina 12

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 29
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 11
18. Set PIO multiple port output
Command Response Parameter
AT+MPIO=<Param> OK
Param: Mask combination of
PIO ports number (Decimal)
HC-05 Bluetooth module provides the ports (PI00~PI07 and PI010) which can
extern another input and output ports to the user.
(1) Mask of PIO port number = (1<<port number)
(2) Mask combination of PIO ports number= (PIO port number mask 1|PIO port number
mask 2|……)
Example :
PI02 port number mask=(1<<2) =0x004
PI010 port number mask =(1<<10)=0x400
Mask combination of PI02 and PI010 port number=(0x004|0x400)=0x404
Example:
1. PI010 and PI02 ports output high level
AT+MPI0=404\r\n
OK
2. PI04 port output high level
AT+PI0=004\r\n
OK
3. PI010 port output high level
AT+PI0=400\r\n
OK
4. All ports output low level
AT+MPI0=0\r\n
Vedere la pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 28 29

Commenti su questo manuale

Nessun commento