Skip to content
alexanderhiam edited this page May 30, 2012 · 6 revisions

PyBBIO's basic routines:

#####run(setup, loop)
Pass this your setup() and loop() functions to start your program.

#####stop()
This is the proper way for a PyBBIO program to stop itself, as it ensures the proper cleanup routines are executed.

#####millis()
Returns roughly the number of milliseconds passed since run() was called.

#####micros()
Returns roughly the number of microseconds passed since run() was called.

#####delay(ms)
This pauses a program for the given number of milliseconds.

#####delayMicroseconds(us)
This pauses a program for the given number of microseconds.

Clone this wiki locally