
CHAPTER 6 DIGITAL AND OPTO PORTS
Page 21
COMMANDS
The following tables shows the RPBASIC-52 commands
used for digital I/O.
Command Function
CONFIG LINE Configures I/ O ports
G5MOD Function returns analog value from an
opto module slot.
G5MOD Statement writes to an analog opto
module at an opto module slot.
LINE Function returns status of an opto
module as a 0 or 1.
LINE Statement turns on or off an opto
module.
LINE B Function returns 8 data bits from any
I/O type device.
LINE B Statement writes 8 data bits to any I/O
type device.
LINE # Function returns status of line at J4
connector as a 0 or 1.
LINE # Statement wr ites data to a line at J4
connector as a 0 or 1.
PWM Sets PWM duty cycle for channel 0 or
1.
Commentaires sur ces manuels