-
1Use the PicoSem library
To make your own experience, all you need is the Arduino IDE, a Raspberry Pi Pico and the PicoSem library and you can download the zip file from: https://github.com/IWILZ/PicoSem
To install the library:
- open Arduino IDE
- select "sketch/include library/add ZIP library"
- go to the folder you used to download the library and select "PicoSem-main.zip"
Now you should see the PicoSem library in your "sketch/include library" list.
Together with the library you will also find 2 simple examples that i recommend you to look at: Blink_Multicore and Bidirectional_Multicore
NOTE that inside both examples you will find two "setup()" and 2 "loop()" with the following structure:
// -------------- Core 0 ----------------- void setup() { ...some instructions... } void loop() { ...some instructions... } // -------------- Core 1 ----------------- void setup1() { ...some instructions... } void loop1() { ...some instructions... }
All the code for core0 is inside setup() and loop() and the code for core1 is inside setup1() and loop1()
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.