Skip to content
The Infinnovation team edited this page Apr 29, 2016 · 3 revisions

The mbed module contains python equivalents of functions and classes in the mbed API.

Functions

wait_ms(ms)

Delay for the given number of milliseconds

wait_us(us)

Delay for the given number of microseconds

Classes

do = DigitalOut(pin)

A GPIO output pin

do.write(value)

Set the pin output (1 or 0)

value = do.read()

Read the value last written

di = DigitalIn(pin)

Clone this wiki locally