티스토리 뷰

HardWare/ARTIK

[ARTIK 530]GPIO Sample Code

White Whale 2017. 6. 8. 10:48
728x90

1. Summery

  ARTIK 053 GPIO Example Source Code. 'basic_function.h' & 'basic_function.c' can be downloaded from github(https://github.com/cckr2/ARITK/tree/master/ARTIK%20053/basic_function).


You can see Pin Number be used to parameter in the picture below. Only Number is parameter(ex. gpio50 -> 50).




2. Example Code - GPIO_INPUT

function digitalRead(int pin) is in 'basic_function.h'



3. Example Code - GPIO_OUTPUT

function digitalWrite(int pin, int value) is in 'basic_function.h'




댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함