Admira Husić
/
LV2_Grupa7_Tim008_Zadatak1
LV2_Grupa8_Tim008_Zadatak1_AdmiraHusic_EnsarSarajcic
main.cpp
- Committer:
- pai2015admirahusic
- Date:
- 2015-03-12
- Revision:
- 0:84fedfb4141c
File content as of revision 0:84fedfb4141c:
#include "mbed.h" #define dp23 P0_0 BusOut ledovi(dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28); DigitalIn taster(dp1); DigitalOut enable(dp14); int main() { enable=0; int i=0; while(1) { if(taster==1){ if(i==0) i=255; else i--; ledovi=i; } else { if(i==255) i=0; else i++; ledovi=i; } wait(1); } }