5.5.4 Set Digital Output Port (|O,<hex16>,<hex16>)
Format:
|O,<hex16>,<hex16>
Command |O
sets the output value of the digital I/O ports. It expects
two input parameters. The first parameter is the bitmap of digital I/O ports, and the
second parameter is the output value in the bitmap. The bitmap format is the same as in
the command |I
(see Table 5-29).
Example: | |O,0013,0011
|
// Set digital I/O output on GPIO_PIN_RA0, GPIO_PIN_RA01 and GPIO_PIN_RA10 // Set GPIO_PIN_RA0 high and GPIO_PIN_RA1 low and GPIO_PIN_RA10 high |
Response: | AOK |
// Success |
Err |
// Syntax error, invalid parameter |