GPIO

Now that we know to run a python program, let us try and write a small GPIO python program.

import mraa

print (mraa.getVersion())
x = mraa.Gpio(13)
x.dir(mraa.DIR_OUT)
x.write(1)

Last updated