Module ioLabs :: Class Port0_2
[frames] | no frames]

Class Port0_2

source code

object --+
         |
        Port0_2

class representing ports 0 and 2 (leds)

Instance Methods
 
__init__(self, commands, port_num)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
and_state(self, and_bits)
logically 'and' the value on the port, returns the port state
source code
 
or_state(self, or_bits)
logically 'or' the value on the port, returns the port state
source code
 
xor_state(self, xor_bits)
logically 'xor' the value on the port, returns the port state
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  direction
get/set the direction of the port
  logic
get/set the logic on the port
  state
get/set the port state
  line0
  line1
  line2
  line3
  line4
  line5
  line6
  line7
  lines
list of individual lines.

Inherited from object: __class__

Method Details

__init__(self, commands, port_num)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Property Details

direction

get/set the direction of the port
Get Method:
ioLabs.Port0_2._get_direction(self)
Set Method:
ioLabs.Port0_2._set_direction(self, bits)

logic

get/set the logic on the port
Get Method:
ioLabs.Port0_2._get_logic(self)
Set Method:
ioLabs.Port0_2._set_logic(self, bits)

state

get/set the port state
Get Method:
ioLabs.Port0_2._get_state(self)
Set Method:
ioLabs.Port0_2._set_state(self, bits)

line0

Get Method:
unreachable(self)

line1

Get Method:
unreachable(self)

line2

Get Method:
unreachable(self)

line3

Get Method:
unreachable(self)

line4

Get Method:
unreachable(self)

line5

Get Method:
unreachable(self)

line6

Get Method:
unreachable(self)

line7

Get Method:
unreachable(self)

lines

list of individual lines. each line has properties for state, direction and logic that can be used to alter the individual bits/lines on the whole port
Get Method:
unreachable(self)