![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
shared
Fork of Boboobooo by
pot.cpp
- Committer:
- Kruskal
- Date:
- 2014-10-31
- Revision:
- 8:089b778962c4
File content as of revision 8:089b778962c4:
#include "mbed.h" #include "pot.h" BX_pot::BX_pot(char t){ switch (t){ case '1': pot_in = new AnalogIn (PTB3); break; case '2': pot_in = new AnalogIn (PTB2); break; } } float BX_pot::read(void){ return pot_in->read(); }