Login
Order Now
Support
Arduino Assignment Help - Solution on Atmel Studio

Arduino Assignment Help - Solution on Atmel Studio

  • 29th Dec, 2022
  • 15:35 PM

Arduino Assignment Help - Solution on Atmel Studio

 

#ifndef F_CPU                // if F_CPU was not defined in Project -> Properties
#define F_CPU 16000000UL        // define it now as 1 MHz unsigned long
#endif

#include             // this is always included in AVR programs
#include             // add this to use the delay function

int main(void) {
    
    DDRC |= (1 << PB5);        // set pin D13 for output
    
    while (1) {            // begin infinite loop
        PORTC ^= (1 << PB5);    // flip state of LED on D13
        _delay_ms(500);        // delay 1/2 second
    }
    return(0);            // should never get here, this is to prevent a compiler warning
}
 

Share this post

assignment helpassignment helperassignment expertsassignment writing services