kopia lustrzana https://github.com/pimoroni/pimoroni-pico
				
				
				
			
		
			
	
	
		
			14 wiersze
		
	
	
		
			302 B
		
	
	
	
		
			CMake
		
	
	
		
		
			
		
	
	
			14 wiersze
		
	
	
		
			302 B
		
	
	
	
		
			CMake
		
	
	
|   | set(OUTPUT_NAME motor2040_read_encoders)
 | ||
|  | add_executable(${OUTPUT_NAME} motor2040_read_encoders.cpp)
 | ||
|  | 
 | ||
|  | target_link_libraries(${OUTPUT_NAME} | ||
|  |         pico_stdlib
 | ||
|  |         motor2040
 | ||
|  |         button
 | ||
|  |         )
 | ||
|  | 
 | ||
|  | # enable usb output
 | ||
|  | pico_enable_stdio_usb(${OUTPUT_NAME} 1)
 | ||
|  | 
 | ||
|  | pico_add_extra_outputs(${OUTPUT_NAME})
 |