platformio,main: add and initialize the NeoPixel
This commit is contained in:
		
							parent
							
								
									75222d9573
								
							
						
					
					
						commit
						e197473edb
					
				| 
						 | 
					@ -16,3 +16,4 @@ build_flags =
 | 
				
			||||||
 | 
					
 | 
				
			||||||
lib_deps = 
 | 
					lib_deps = 
 | 
				
			||||||
	thelsing/knx @ ^1.5.0
 | 
						thelsing/knx @ ^1.5.0
 | 
				
			||||||
 | 
						adafruit/Adafruit NeoPixel@^1.12.3
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							| 
						 | 
					@ -1,9 +1,16 @@
 | 
				
			||||||
#include <Arduino.h>
 | 
					#include <Arduino.h>
 | 
				
			||||||
 | 
					#include <Adafruit_NeoPixel.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void setup(){
 | 
					#define NUMPIXELS 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Adafruit_NeoPixel pixels(NUMPIXELS, PIN_NEOPIXEL, NEO_GRB + NEO_KHZ800);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void setup() {
 | 
				
			||||||
 | 
					    pixels.begin();
 | 
				
			||||||
 | 
					    pixels.setPixelColor(0, pixels.Color(0, 150, 0));
 | 
				
			||||||
 | 
					    pixels.show();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void loop(){
 | 
					void loop() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue