tim010 tim010
/
LV2_Grupa4_Tim010_Zadatak1
Pejovic Luka Durakovic Adna
main.cpp
- Committer:
- tim010
- Date:
- 2014-03-10
- Revision:
- 0:b846b55b0996
File content as of revision 0:b846b55b0996:
#include "mbed.h" BusOut ledice(dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28); DigitalOut enable(dp14); DigitalIn taster(dp1); int main() { int broj = 0; enable = 0; ledice = broj; while(1) { if(taster == 0) broj++; else broj--; if(broj < 0) broj = 255; if(broj > 255) broj = 0; ledice = broj; wait(1); } }