Porča Sumeja Pejović Luka

Dependencies:   mbed

Committer:
tim010
Date:
Mon Mar 31 17:21:19 2014 +0000
Revision:
0:216e745d5a75
LV5_PAI_Grupa4_Tim010

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tim010 0:216e745d5a75 1 #include "mbed.h"
tim010 0:216e745d5a75 2
tim010 0:216e745d5a75 3
tim010 0:216e745d5a75 4 //Novo za LV4
tim010 0:216e745d5a75 5 AnalogIn ulaz(dp9);
tim010 0:216e745d5a75 6 //end
tim010 0:216e745d5a75 7 //LV5
tim010 0:216e745d5a75 8 PwmOut izlaz(dp18);
tim010 0:216e745d5a75 9 //end
tim010 0:216e745d5a75 10
tim010 0:216e745d5a75 11
tim010 0:216e745d5a75 12
tim010 0:216e745d5a75 13
tim010 0:216e745d5a75 14 int main() {
tim010 0:216e745d5a75 15 //char c, c1;
tim010 0:216e745d5a75 16 wait(0.05);
tim010 0:216e745d5a75 17 izlaz.period_us(50);
tim010 0:216e745d5a75 18
tim010 0:216e745d5a75 19 while(1){
tim010 0:216e745d5a75 20 izlaz = ulaz;
tim010 0:216e745d5a75 21 // wait_us(50); //ovo je mozda potrebno ne znamo kako je interno pwm realiziran, da li interno koristi wait
tim010 0:216e745d5a75 22 }
tim010 0:216e745d5a75 23
tim010 0:216e745d5a75 24 }