Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <util/delay.h>
- #include <stdbool.h>
- #include "pin_control.h"
- void sleep(int ms);
- int main (void) {
- PIN11_OUT;
- PIN11_ON;
- sleep(500);
- PIN11_OFF;
- while (true) {
- PIN11_ON;
- sleep(200);
- // PIN11_OFF;
- }
- }
- void sleep(int ms) {
- for (int i=0; i<ms; i++) {
- _delay_ms(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement