setup()함수는 보드에 전원이 인가되거나 재시작시에 자동으로 1회 호출됩니다.
변수와 핀 모드 초기화, 라이브러리 시작 등에 주로 사용됩니다.
int buttonPin = 3; void setup() { Serial.begin(9600); pinMode(buttonPin, INPUT); } void loop() { // ... } |
Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator