Haris Imamovic
/
LV04_Grupa3_Tim3_Zad01
Haris Imamovic Almir Hamza
Revision 0:32ebd3dae1b3, committed 2016-03-25
- Comitter:
- 2016US_HarisImamovic
- Date:
- Fri Mar 25 17:44:16 2016 +0000
- Commit message:
- LV04_Grupa3_Tim3
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 32ebd3dae1b3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Mar 25 17:44:16 2016 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +#define OSNOVNI_PERIOD 0.00005 // T = 50 mikroSekundi + +AnalogIn control(dp9); +PwmOut light(dp18); + +int main() { + + light.period((float)OSNOVNI_PERIOD); + + while(1) light.write(control); +}
diff -r 000000000000 -r 32ebd3dae1b3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 25 17:44:16 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/c0f6e94411f5 \ No newline at end of file