Hack star
Published © MIT

✨Raspberry Pi Pico online Simulator - 2023 ✨

You can simulate several embedded systems online - No hardware necessary. Simulate Raspberry Pi Pico. Code using C or MicroPython 🐍 💻

BeginnerProtip1 hour10,210
✨Raspberry Pi Pico online Simulator - 2023 ✨

Things used in this project

Story

Read more

Code

Wokwi Embedded Systems Simulator - Pi Pico LED Blinky

Arduino
/**
 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include "pico/stdlib.h"

void setup() {
#ifndef PICO_DEFAULT_LED_PIN
#warning blink example requires a board with a regular LED
#else
    const uint LED_PIN = PICO_DEFAULT_LED_PIN;
    gpio_init(LED_PIN);
    gpio_set_dir(LED_PIN, GPIO_OUT);
    while (true) {
        gpio_put(LED_PIN, 1);
        sleep_ms(250);
        gpio_put(LED_PIN, 0);
        sleep_ms(250);
    }
#endif
}

void loop() {}

Credits

Hack star

Hack star

75 projects • 97 followers
an Arduino enthusiast and an electronic hobbyist

Comments