GPIO

Now that we know to run a python program, let us try and write a small GPIO python program ans save the file as led_blinky.py

import mraa

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

Last updated