Code for printing Hello World on Raspberry Pi Pico's serial (USB).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** | |
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd. | |
* | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
#include <stdio.h> | |
#include "pico/stdlib.h" | |
int main() { | |
stdio_init_all(); | |
while (true) { | |
printf("Hello, world!\n"); | |
sleep_ms(1000); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment