Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.

Dependencies:   C12832 LM75B mbed EthernetInterface mbed-rtos

Committer:
bertgereels
Date:
Wed Mar 14 07:59:21 2018 +0000
Revision:
1:b5c534165dfe
Parent:
0:88d3b9015f7c
Added slave state machine.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bertgereels 0:88d3b9015f7c 1 #include "potentiometer.h"
bertgereels 0:88d3b9015f7c 2
bertgereels 0:88d3b9015f7c 3 namespace ProjectOne{
bertgereels 0:88d3b9015f7c 4
bertgereels 0:88d3b9015f7c 5 Potentiometer::Potentiometer(PinName analogPin) : pot1(analogPin){
bertgereels 0:88d3b9015f7c 6
bertgereels 0:88d3b9015f7c 7 }
bertgereels 0:88d3b9015f7c 8
bertgereels 1:b5c534165dfe 9 float Potentiometer::getPotValue(void){
bertgereels 1:b5c534165dfe 10 return pot1.read() * 255;
bertgereels 0:88d3b9015f7c 11 }
bertgereels 0:88d3b9015f7c 12
bertgereels 0:88d3b9015f7c 13 }