Skip to content
Snippets Groups Projects
Commit 22017d9d authored by LEESANGKYEONG's avatar LEESANGKYEONG
Browse files

HW update

parent 2c964e52
No related branches found
No related tags found
No related merge requests found
# 실전코딩 2
# HW5_GPIO 연결
## HW 사진1
- ![1](./image/1.jpg)
## HW 사진2
- ![2](./image/2.jpg)
## HW 사진3
- ![3](./image/3.jpg)
## HW GPIO 연결 코드
```C code
#include <stdio.h>
#include <wiringPi.h>
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;
}
```
HW5_GPIO/image/1.jpg

2.53 MiB

HW5_GPIO/image/2.jpg

3.28 MiB

HW5_GPIO/image/3.jpg

2.55 MiB

#include <stdio.h>
#include <wiringPi.h>
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;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment