14 lines
		
	
	
		
			245 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			245 B
		
	
	
	
		
			C++
		
	
	
	
	
	
int value = 0;
 | 
						|
void setup() {
 | 
						|
  // put your setup code here, to run once:
 | 
						|
pinMode(10, INPUT);
 | 
						|
Serial.begin(9600);
 | 
						|
}
 | 
						|
 | 
						|
void loop() {
 | 
						|
  // put your main code here, to run repeatedly:
 | 
						|
 value = digitalRead(10);
 | 
						|
 Serial.println(value);
 | 
						|
 delay(100);
 | 
						|
}
 |