Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num NameLoad keyword Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Print BinOpMod Str Call NameLoad Call NameLoad Expr Call NameLoad Num decorator_list Expr Call NameLoad NameLoad NameLoad
N/A N/A 
 EventIO_test.py 
 Alexander Hiam

 An example to demonstrate the use of the EventIO library
 for PyBBIO.

 Example circuit:
  -A switch from 3.3v (P9.3) to GPIO1_7 (P8.4) with a 10k pull-down
   resistor to GND (P9.2)
 
  -A switch from 3.3v to GPIO1_3 (P8.6) with a 10k pull-down resistor.

  -A voltage divider with two equal resistors around 10k between 3.3v
   and GND to make about 1.6v   

  -A potentiometer with the two outer pins connected to the 1.6v output
   of the voltage divider and GND, and the center wiper pin connected to
   AIN0 (P9.39).

 This example program is in the public domain.
 bbio * bbio.libraries.EventIO * N/A sw1 GPIO1_7 N/A sw2 GPIO1_3 N/A pot AIN0 N/A event_loop N/A EventLoop event1 N/A N/A N/A N/A N/A N/A toggle USR1 N/A EVENT_CONTINUE N/A event2 N/A N/A N/A N/A N/A N/A toggle USR2 N/A EVENT_CONTINUE N/A event3 N/A N/A N/A N/A N/A N/A digitalWrite USR3 HIGH N/A EVENT_CONTINUE N/A event4 N/A N/A N/A N/A N/A N/A digitalWrite USR3 LOW N/A EVENT_CONTINUE N/A setup N/A N/A N/A N/A N/A N/A N/A event_loop add_event N/A DigitalTrigger sw1 HIGH event1 50 N/A N/A N/A event_loop add_event N/A DigitalTrigger sw2 HIGH event2 270 N/A N/A N/A event_loop add_event N/A AnalogLevel pot 1820 event3 N/A N/A N/A event_loop add_event N/A AnalogLevel pot 1820 event4 direction -1 N/A N/A N/A event_loop start N/A loop N/A N/A N/A N/A N/A N/A Time running: %ims N/A int N/A millis N/A N/A delay 3000 N/A N/A N/A run setup loop