Skip to content
Snippets Groups Projects
Commit b5689d2b authored by 이장원's avatar 이장원
Browse files

ledTest

parent c5d5fa12
Branches
No related tags found
No related merge requests found
# ledTest
![letTest](../Images/ledTest.jpg)
\ No newline at end of file
#include <stdio.h>
#include <wiringPi.h>
// gcc test.c -lwiringPi
int main()
{
int i;
if (wiringPiSetup() == -1)
return -1;
pinMode(29, OUTPUT);
for (i = 0; i < 5; i++)
{
digitalWrite(29, 1);
delay(500);
digitalWrite(29, 0);
delay(500);
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment