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.
Fork of FRDM_TSI by
main.cpp
- Committer:
- emilmont
- Date:
- 2012-10-11
- Revision:
- 0:0f00f07ebde0
- Child:
- 1:51b1b688179a
File content as of revision 0:0f00f07ebde0:
#include "mbed.h"
#include "TSI_Sensor.h"
int main(void) {
DigitalOut led(LED_GREEN);
TSI_Sensor tsi;
while (true) {
printf("slider percentage: %d%\r\n", tsi.getPercentage());
printf("slider distance: %dmm\r\n", tsi.getDistance());
wait(1);
led = !led;
}
}
