mirror of https://github.com/CIRCL/Circlean
Make sure the led is always on.
parent
e84ec6c1a1
commit
71198119cf
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue