Index
 
  Reference for Wiring 1.0 (ALPHA) 0017+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name  

setup()

   
Examples  
void setup() { 
  pinMode(0, OUTPUT); 
  Serial.begin(9600); 
} 
 
void loop() { 
  Serial.print('.'); 
  delay(1000); 
} 

Description   Function called once when the program begins running. Used to define initial enviroment properties such as a pin mode (INPUT or OUTPUT), starting the serial port etc. before the loop() begins executing. Variables declared within setup() are not accessible within loop().

프로그램이 실행될 때 한번은 호출됩니다. 핀 모드 (INPUT 또는OUTPUT), 시리얼 통신포트등.. 초기환경설정합니다. loop() 가 실행되기전에 실행됩니다. setup() 에서 선언된 변수는 loop() 에서 사용할수 없습니다. 

   
Syntax  
void setup() {
  statements
}
   
Parameters  
statements   any valid statements

   
Returns   None
   
Usage   Web & Application
   
Related   loop()