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

Class Buttons

source code

object --+
         |
        Buttons

class that represents the buttons on the USBBox

Instance Methods
 
__init__(self, commands)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

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

Properties
  enabled
get/set enable/disabled status of all buttons
  debounce_down
  debounce_up
  state
get the state of all buttons (key report port1_bits value)
  line0
individual line (one button)
  line1
  line2
  line3
  line4
  line5
  line6
  line7
  lines
property for all 8 lines.

Inherited from object: __class__

Method Details

__init__(self, commands)
(Constructor)

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

Property Details

enabled

get/set enable/disabled status of all buttons
Get Method:
ioLabs.Buttons._get_enabled(self)
Set Method:
ioLabs.Buttons._set_enabled(self, enabled)

debounce_down

Get Method:
ioLabs.Buttons._get_debounce_down(self)
Set Method:
ioLabs.Buttons._set_debounce_down(self, debounce)

debounce_up

Get Method:
ioLabs.Buttons._get_debounce_up(self)
Set Method:
ioLabs.Buttons._set_debounce_up(self, debounce)

state

get the state of all buttons (key report port1_bits value)
Get Method:
ioLabs.Buttons._get_state(self)

line0

individual line (one button)
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

property for all 8 lines. each line (button) has a state and enabled property so each button can be queried/modified separately
Get Method:
unreachable(self)