Himna

Dependencies:   mbed

Fork of fistrek_intenzitetdiode by Applied engineering Team

main.cpp

Committer:
ffistrek
Date:
2015-12-10
Revision:
3:c9b8b2a4d481
Parent:
2:913f33d69e70
Child:
4:a3ec775f889b

File content as of revision 3:c9b8b2a4d481:

#include "mbed.h"
int main() 
{
    DigitalOut led(LED1);
      DigitalIn sw(p5);
        sw.mode(PullUp);
         int counter=0;
         while(1) 
         {
             if (sw==1) 
             {
                    counter++;
                    }
                     if((counter%9)==0){
                          led = 1;
                          }
                          }
                          }