Skip to content

Instantly share code, notes, and snippets.

@elktros
Created March 22, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/d59c15a54b48d14a0279f94276bee64a to your computer and use it in GitHub Desktop.
Save elktros/d59c15a54b48d14a0279f94276bee64a to your computer and use it in GitHub Desktop.
Code for printing Hello World on Raspberry Pi Pico's serial (USB).
**
* 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