Created
March 22, 2021 12:40
-
-
Save elktros/d59c15a54b48d14a0279f94276bee64a to your computer and use it in GitHub Desktop.
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