Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
FRDM GPIO
# FRDM-GPIO
# http://mbed.org/users/mbed_official/code/FRDM_GPIO/
import mbed
import sys
gpo = mbed.DigitalOut('PTB8')
led = mbed.DigitalOut('LED_RED')
while 1:
gpo.write(1)
led.write(1) # Off
sys.wait(2*1000)
gpo.write(0)
led.write(0) # on
sys.wait(2*1000)