SHARE
TWEET

Untitled

a guest Feb 27th, 2020 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * uppgift3.c
  3.  *
  4.  * Created: 2020-02-27 10:54:57
  5.  * Author : eko15lj1
  6.  */
  7. #define F_CPU 16000000UL
  8.  
  9. #include <avr/io.h>
  10. #include <util/delay.h>
  11.  
  12. extern void led_on(char);
  13. extern void led_off(char);
  14. extern char check_button(char);
  15.  
  16. int main(void)
  17. {
  18.     /* Replace with your application code */
  19.     while (1)
  20.     {
  21.  
  22.         led_on(check_button(0xff));
  23.         _delay_ms(500);
  24.         led_off(check_button(0xff));
  25.         _delay_ms(500);
  26.  
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top