tim007 tim007
/
LV5_Grupa5_Tim7_Zad2
Anesa Drakovac Muris Nuhodžić
main.cpp@0:058037915f46, 2014-04-03 (annotated)
- Committer:
- tim007
- Date:
- Thu Apr 03 13:27:18 2014 +0000
- Revision:
- 0:058037915f46
Anesa Drakovac; Muris Nuhod?i?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tim007 | 0:058037915f46 | 1 | #include "mbed.h" |
tim007 | 0:058037915f46 | 2 | PwmOut digIzlaz(dp18); |
tim007 | 0:058037915f46 | 3 | AnalogIn ulaz(dp9); |
tim007 | 0:058037915f46 | 4 | |
tim007 | 0:058037915f46 | 5 | int main(){ |
tim007 | 0:058037915f46 | 6 | digIzlaz.period_us(500); |
tim007 | 0:058037915f46 | 7 | while(1){ |
tim007 | 0:058037915f46 | 8 | digIzlaz = ulaz; |
tim007 | 0:058037915f46 | 9 | wait_ms(1); |
tim007 | 0:058037915f46 | 10 | } |
tim007 | 0:058037915f46 | 11 | } |
tim007 | 0:058037915f46 | 12 |