![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
uitvoer/zeil.cpp
- Committer:
- pd0wm
- Date:
- 2011-09-27
- Revision:
- 0:bec310bde899
File content as of revision 0:bec310bde899:
#include "zeil.h" Zeil::Zeil() : led(LED3),sail(p22) { stand = 50; this->write(); } void Zeil::set(int s) { stand = s; if (stand > 100) stand = 100; if (stand < 0) stand = 0; this->write(); } int Zeil::get(void) { return stand; } void Zeil::write(void){ led = stand / 100.0; sail.pulsewidth(0.001 + stand / 100000.0); }