You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							343 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							343 B
						
					
					
				
								#include <INPUT_4051.h>
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								INPUT_4051 input_4051(A1,10,9,8,printValue);
							 | 
						|
								
							 | 
						|
								void setup() {
							 | 
						|
								  Serial.begin(9600);
							 | 
						|
								  input_4051.setPinCount(2);
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								void loop() {
							 | 
						|
								  input_4051.loop();
							 | 
						|
								} 
							 | 
						|
								
							 | 
						|
								void printValue(int pin, int value) {
							 | 
						|
								    Serial.print("pin");
							 | 
						|
								    Serial.print(pin);
							 | 
						|
								    Serial.print(" : ");
							 | 
						|
								    Serial.print(value/8);
							 | 
						|
								    Serial.println();
							 | 
						|
								}
							 |