![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Lejla Agić Pajić Enil
main.cpp
- Committer:
- tim008
- Date:
- 2014-03-10
- Revision:
- 0:ff2a62b05963
File content as of revision 0:ff2a62b05963:
#include "mbed.h" BusOut l (dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28); DigitalOut e (dp14); DigitalIn s (dp1); int main() { e = 0; int x = 0; l = x; while(1) { l = (x + 1) % 256; wait (1.0); if (s == 1) x--; else x++; } }