Hey guys.
Raspberry Pi's first microcontroller-class product: Raspberry Pi Pico is landing. Has anyone got the board already??? If we can run RT-Thread on Raspberry Pi Pico???
I am no idea about this board, but it sounds cool. I found some resources and datasheets. Hope this stuff can help you guys! https://www.micropython.org.cn/forum/viewtopic.php?f=16&t=1763
Hello, I have received my RaspberryPi Pico board. Looking forward to loading RT-Thread and do some exciting projects.
Super Wowww. And Yesss. RT-Thread can run the Raspberry Pi Pico!
Does anyone has the interest to give it a try, RT-Thread wants to offer New Raspberry Pi Pico.
real cool!
And if you have no board right now, you maybe try it under QEMU. QEMU has the ability to simulate ARM Cortex-M.
Good for you. I'm waiting for my board to get ready. I'll update my project here later on. Also look forward to seeing yours.
I've got mine PICO board and followed succesfully tutorial: https://rt-thread.medium.com/getting-started-with-raspberry-pi-pico-in-rt-thread-studio-ide-5bb08c01363f. But for me it would be wonderful run an IDE RT-Thread-Studion on a greater brother of PICO - the Raspberry PI4 under Linux but there is no Linux version yet. I also consider porting my old code written in Arduino to RT-Thread.
So simplest Arduino code:
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_PIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_PIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_PIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
should be translated into RT-Thread version:
while (1)
{
rt_pin_write(LED_PIN, 1);
rt_thread_mdelay(1000);
rt_pin_write(LED_PIN, 0);
rt_thread_mdelay(1000);
}
Also original PICO Raspberry SDK example from [http://github.com/raspberrypi/pico-examples/blob/master/blink/blink.c] (http://github.com/raspberrypi/pico-examples/blob/master/blink/blink.c) can be easily ported:
int main() {
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);
}
}
I consider to write a simple script or Python code to automatic translate of Arduio code
Thanks, mystertwolf! That's so nice of you.
I'm trying to get a board in my local, will update my Raspberry Pi Pico development process here, hope to share with you later on.