Bert Gereels / Mbed 2 deprecated ProjectOne

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers potentiometer.cpp Source File

potentiometer.cpp

00001 #include "potentiometer.h"
00002 
00003 namespace ProjectOne{
00004     
00005     Potentiometer::Potentiometer(PinName analogPin) : pot1(analogPin){
00006         
00007     }
00008     
00009     float Potentiometer::getPotValue(void){
00010         return pot1.read() * 255;
00011     }
00012 
00013 }