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.
TS_porting.cpp
00001 #include "TS_porting.h" 00002 00003 int TouchScreenPort::getADCvalue(int pin){ 00004 return AnalogIn((PinName)pin).read() * 3300; 00005 } 00006 00007 void TouchScreenPort::setDigitalPin(int pin, int dir, int value){ 00008 PinDirection pDirection; 00009 if(dir == 0) pDirection = PIN_INPUT; 00010 else pDirection = PIN_OUTPUT; 00011 DigitalInOut((PinName)pin,pDirection,PullDefault,value); 00012 }
Generated on Sun Jul 31 2022 14:09:12 by
1.7.2