test usb serial
This commit is contained in:
		| @@ -11,4 +11,6 @@ target_link_libraries(bmc | |||||||
|   pico_stdlib |   pico_stdlib | ||||||
|   pico_cyw43_arch_none |   pico_cyw43_arch_none | ||||||
| ) | ) | ||||||
|  | pico_enable_stdio_usb(bmc 1)  | ||||||
|  | pico_enable_stdio_uart(bmc 0)  | ||||||
| pico_add_extra_outputs(bmc) | pico_add_extra_outputs(bmc) | ||||||
							
								
								
									
										3
									
								
								bmc.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								bmc.c
									
									
									
									
									
								
							| @@ -1,3 +1,4 @@ | |||||||
|  | #include <stdio.h> | ||||||
| #include "pico/stdlib.h" | #include "pico/stdlib.h" | ||||||
| #include "pico/cyw43_arch.h" | #include "pico/cyw43_arch.h" | ||||||
|  |  | ||||||
| @@ -9,8 +10,10 @@ int main() { | |||||||
|     } |     } | ||||||
|     while (true) { |     while (true) { | ||||||
|         cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1); |         cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1); | ||||||
|  |         printf("LED on"); | ||||||
|         sleep_ms(1000); |         sleep_ms(1000); | ||||||
|         cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0); |         cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0); | ||||||
|  |         printf("LED off"); | ||||||
|         sleep_ms(1000); |         sleep_ms(1000); | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user