Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Pico-2W-pinout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Blink
A multicore program for Raspberry Pi Pico 2 W using **Arduino framework**.

## Dependencies

- Arduino IDE
- [earlephilhower/arduino-pico](https://github.com/earlephilhower/arduino-pico)
- See [Installation instructions](https://arduino-pico.readthedocs.io/en/latest/install.html)

## Program

### Core 0
Blink

### Core 1
Servo
17 changes: 17 additions & 0 deletions blink-pico-arduino.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Running on core0.
*/

void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(250); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(250); // wait for a second

}
19 changes: 19 additions & 0 deletions core2.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Running on core1.
*/

#include <Servo.h>

Servo servo1;
int pos;

void setup1() {
servo1.attach(D1, 540, 2400); // min/max pulse width in ms (1e-6)
}

void loop1() {
for(pos = 0; pos <= 180; pos += 10) {
servo1.write(pos);
delay(1000);
}
}
Binary file added pico-2-w-datasheet.pdf
Binary file not shown.