Atmel Studio 6.0 and Due
hi guys
i trying write code simple blinking led on arduino due using atmel studion 6.0 , gcc compiler.i able compile code led not blinking
i trying write code simple blinking led on arduino due using atmel studion 6.0 , gcc compiler.i able compile code led not blinking
code: [select]
#include <asf.h>
void delay_ms(unsigned int delay) {
while (delay--) for(int x=0; x<0x3fff; x++) __asm__("nop\n\t");
}
#define led 1<<27
int main (void)
{
unsigned int i;
sysclk_init();
board_init();
piob->pio_oer =1<<27;
while(1)
{
piob->pio_sodr=led; // turn led on (high voltage level)
delay_ms(1000); // wait second
piob->pio_codr=led; // turn led off making voltage low
delay_ms(1000); // wait second
}
// insert application code here, after board has been initialized.
}
this code not working , led not blinking.can me sample code , program.
regards
gopalakrishnan.n
hi
i got answer armguy post.
the problem has been solved
i got answer armguy post.
the problem has been solved
Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > Atmel Studio 6.0 and Due
arduino
Comments
Post a Comment