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.
main.cpp
00001 #include "mbed.h" 00002 #include "TSISensor.h" 00003 00004 int main(void) { 00005 PwmOut led1(LED_BLUE); 00006 PwmOut led2(LED_GREEN); 00007 00008 TSISensor tsi; 00009 00010 led1.period_ms(1); 00011 led2.period_ms(1); 00012 00013 while (true) { 00014 printf("\r\n"); 00015 for(uint8_t i = 0; i < ELECTRODE_NUM; i++) 00016 printf("%d:%d-%f ", tsi.Pressed(i), tsi.readTSI_u16(i),tsi.readTSI(i)); 00017 00018 led1 = 1-tsi.readTSI(0); 00019 led2 = 1-tsi.readTSI(1); 00020 00021 wait(0.1); 00022 } 00023 }
Generated on Sat Aug 27 2022 01:22:46 by
