Adnan Kičin Nurif Dedagić

Dependencies:   mbed

Fork of LV5_zadatak1_grupa3_tim003 by tim003 tim003

Committer:
tim003
Date:
Mon Mar 31 15:58:53 2014 +0000
Revision:
1:c6e9be44bae5
Parent:
0:f26ed78adf52
LV3-grupa3-tim003-zadatak1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tim003 0:f26ed78adf52 1 #include "mbed.h"
tim003 1:c6e9be44bae5 2
tim003 1:c6e9be44bae5 3 PwmOut peveem(dp18);
tim003 1:c6e9be44bae5 4 AnalogIn ulaz(dp9);
tim003 1:c6e9be44bae5 5
tim003 1:c6e9be44bae5 6
tim003 1:c6e9be44bae5 7 int main() {
tim003 1:c6e9be44bae5 8 peveem.period_us(500);
tim003 1:c6e9be44bae5 9 int i=0;
tim003 1:c6e9be44bae5 10 while(1){
tim003 1:c6e9be44bae5 11 if(i%100==0){ peveem=ulaz; i=1;}
tim003 1:c6e9be44bae5 12 i++;
tim003 0:f26ed78adf52 13 }
tim003 1:c6e9be44bae5 14
tim003 1:c6e9be44bae5 15 }