Project

General

Profile

« Previous | Next » 

Revision e45aa19e

Added by dsorber over 13 years ago

Adding code I wrote a while ago. I'm starting to create objects for each of the major functions/components of the board.

View differences:

525.743/code/test scripts/pushbutton.py
# Use the BCM addressing scheme
RPIO.setmode(RPIO.BCM)
# Setup input
# Setup all five outputs
RPIO.setup(22, RPIO.IN)
RPIO.add_interrupt_callback(22, switch_callback, edge='both',
......
if __name__ == '__main__':
sys.exit(main())
sys.exit(main())

Also available in: Unified diff