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_TSI
# FRDM_TSI Touch Sensor
# http://mbed.org/users/mbed_official/code/FRDM_TSI/
import sys
import mbed
led = mbed.PwmOut('LED_GREEN');
tsi = mbed.TSISensor()
while 1:
    led.write(1.0 - tsi.readPercentage())
    sys.wait(100)