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.
Dependents: gloveSensorSend RoboticHand
flex_sensor.cpp
00001 #include "flex_sensor.h" 00002 00003 flex_sensor::flex_sensor( PinName pinno ) 00004 { 00005 analog_in = new AnalogIn( pinno ); 00006 } 00007 00008 flex_sensor::~flex_sensor() 00009 { 00010 if( analog_in != NULL ) 00011 { 00012 delete analog_in; 00013 } 00014 } 00015 00016 unsigned short flex_sensor::get_raw_value( void ) 00017 { 00018 return analog_in->read_u16(); 00019 }
Generated on Mon Jul 18 2022 17:27:12 by
1.7.2