Make sure the led is always on.

pull/10/head
Raphaël Vinot 2013-10-09 10:46:28 +02:00
parent e84ec6c1a1
commit 71198119cf
1 changed files with 4 additions and 4 deletions

View File

@ -56,12 +56,12 @@ int main(int argc, char* argv[])
//Turn on led
while (1) {
printf("Enable LED\n");
//printf("Enable LED\n");
GPIO_SET(GPIO_4);
usleep(1000000);
printf("Disable GPIO\n"); // Does not seem to work?
GPIO_CLR(GPIO_4);
usleep(1000000);
//printf("Disable GPIO\n"); // Does not seem to work?
//GPIO_CLR(GPIO_4);
//usleep(1000000);
}
/* Free up ressources */
/* munmap GPIO */