arduino-0018-windows
This commit is contained in:
		
							parent
							
								
									157fd6f1a1
								
							
						
					
					
						commit
						f39fc49523
					
				
					 5182 changed files with 950586 additions and 0 deletions
				
			
		|  | @ -0,0 +1,13 @@ | |||
| 
 | ||||
| void setup() { | ||||
|   pinMode(6, OUTPUT); | ||||
| } | ||||
| 
 | ||||
| void loop() { | ||||
|   int sensorValue = analogRead(2); | ||||
|   int ledFadeValue = map(sensorValue, 0, 1023, 0, 255); | ||||
|   analogWrite(6, ledFadeValue);   | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
		Reference in a new issue