Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Intro to Raspberry Pi Pico and RP2040 - C/C++ Part 1: VS Code and Blink | Digi-Key Electronics

Автор: DigiKey

Загружено: 2021-05-10

Просмотров: 181187

Описание:

Previously, we covered how to program the Raspberry Pi Pico using MicroPython. In this tutorial, we will show you how to create a simple blink program using C. We will also configure VS Code so that it can build projects with the push of a button.

Note that the written version of this tutorial can be found here: https://www.digikey.com/en/maker/proj...

You will need to install the build tools for the RP2040. I recommend following Chapter 1 (for Linux) or Chapter 9 (for macOS and Windows) of the official Getting Started with Raspberry Pi Pico guide (https://datasheets.raspberrypi.org/pi.... Alternatively, if you are on Windows and do not wish to install Build Tools for Visual Studio, you can follow the guide here: https://shawnhymel.com/2096/how-to-se....

In VS Code, you will want to install the CMake and CMake Tools extensions. These tools will provide buttons on your status bar that allow you to build your project by clicking a button. All of your projects will need a unique CMakeLists.txt file, which tells the cmake tool how to generate the build files.

CMake is a build system generator and does not actually build the program. The Raspberry Pi Pico SDK uses “make” as the actual build system. We can call cmake and make in the command line to build the project, or we can click on the CMake and Build buttons in VS Code to accomplish the same thing.

To upload the compiled program, we put the Pico into bootloader mode by pressing and holding the BOOTSEL button when plugging in the USB cable. This will cause the Pico to enumerate as a USB drive on the computer. Then, copy the compiled .uf2 file to that drive. The Pico will reset and automatically start running the program.

Product Links:
https://www.digikey.com/en/products/d...

Related Videos:
Intro to MicroPython – Maker.io Tutorial -    • Intro to MicroPython – Maker.io Tutorial |...  
Intro to Raspberry Pi Pico and RP2040:
Part 1: VS Code and Blink -    • Intro to Raspberry Pi Pico and RP2040 - C/...  
Part 2: Debug with Picoprobe -    • Intro to Raspberry Pi Pico and RP2040 - C/...  
Part 3: How to Use PIO -    • Intro to Raspberry Pi Pico and RP2040 - C/...  

Related Project Links:
https://www.digikey.com/en/maker/proj...

Related Articles:
Introduction to MicroPython - https://www.digikey.com/en/maker/blog...
Raspberry Pi Pico and RP2040 - MicroPython Part 1 - https://www.digikey.com/en/maker/proj...

Learn more:
Maker.io - https://www.digikey.com/en/maker
Digi-Key’s Blog – TheCircuit https://www.digikey.com/en/blog
Connect with Digi-Key on Facebook   / digikey.electronics  
And follow us on Twitter   / digikey  

Intro to Raspberry Pi Pico and RP2040 - C/C++ Part 1: VS Code and Blink | Digi-Key Electronics

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#5684 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "jnC5LrTx470" ["related_video_title"]=> string(97) "Intro to Raspberry Pi Pico and RP2040 - C/C++ Part 2: Debug with Picoprobe | Digi-Key Electronics" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(7) "DigiKey" } [1]=> object(stdClass)#5657 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "Ic4ExTusoTw" ["related_video_title"]=> string(68) "Pico Course for Beginners | Coding, Electronics and Microcontrollers" ["posted_time"]=> string(27) "7 месяцев назад" ["channelName"]=> string(16) "Core Electronics" } [2]=> object(stdClass)#5682 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "RTOYNZcexBk" ["related_video_title"]=> string(64) "VSCode Extension for Raspberry Pi Pico 1 & 2 | DrJonea.co.uk" ["posted_time"]=> string(27) "7 месяцев назад" ["channelName"]=> string(50) "Dr Jon EA journey with Raspberry PI Pico (+ Pico2)" } [3]=> object(stdClass)#5689 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "Zy64kZEM_bg" ["related_video_title"]=> string(43) "Raspberry Pi Pico - Control the (I/O) World" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(17) "DroneBot Workshop" } [4]=> object(stdClass)#5668 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3_fxE2XXgX8" ["related_video_title"]=> string(33) "Raspberry Pi Pico - PIO explained" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(6) "Slador" } [5]=> object(stdClass)#5686 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "mThiyFYEQhY" ["related_video_title"]=> string(163) "«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz" ["posted_time"]=> string(24) "16 часов назад" ["channelName"]=> string(19) "Максим Кац" } [6]=> object(stdClass)#5681 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "Z7_vSj5G3EU" ["related_video_title"]=> string(163) "ПОТАПЕНКО: "Я скажу страшную вещь". Про экономику, Силуанова, пакет с пакетами и ЧТО ДАЛЬШЕ" ["posted_time"]=> string(24) "13 часов назад" ["channelName"]=> string(24) "И Грянул Грэм" } [7]=> object(stdClass)#5691 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "ati3Wsc-QoU" ["related_video_title"]=> string(174) "СЛИТЫЕ ДОКЛАДЫ ФСБ: КИТАЙ ВЕДЕТ КИБЕРВОЙНУ ПРОТИВ РОССИИ. И присматривается к Дальнему Востоку" ["posted_time"]=> string(21) "1 день назад" ["channelName"]=> string(19) "Майкл Наки" } [8]=> object(stdClass)#5667 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "p0Ri2tNb-6I" ["related_video_title"]=> string(186) "Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду" ["posted_time"]=> string(24) "10 часов назад" ["channelName"]=> string(23) "Глеб Соломин" } [9]=> object(stdClass)#5685 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "ann_T6P2vxY" ["related_video_title"]=> string(99) "ОГРОМНАЯ ИЗБА! ПОПАЛ ПОД ПРОЛИВНОЙ ДОЖДЬ. ИДУ ЗА ЩУКОЙ." ["posted_time"]=> string(24) "15 часов назад" ["channelName"]=> string(16) "-ТАЁЖНЫЙ-" } }
Intro to Raspberry Pi Pico and RP2040 - C/C++ Part 2: Debug with Picoprobe | Digi-Key Electronics

Intro to Raspberry Pi Pico and RP2040 - C/C++ Part 2: Debug with Picoprobe | Digi-Key Electronics

Pico Course for Beginners | Coding, Electronics and Microcontrollers

Pico Course for Beginners | Coding, Electronics and Microcontrollers

VSCode Extension for Raspberry Pi Pico 1 & 2 | DrJonea.co.uk

VSCode Extension for Raspberry Pi Pico 1 & 2 | DrJonea.co.uk

Raspberry Pi Pico - Control the (I/O) World

Raspberry Pi Pico - Control the (I/O) World

Raspberry Pi Pico - PIO explained

Raspberry Pi Pico - PIO explained

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

ПОТАПЕНКО:

ПОТАПЕНКО: "Я скажу страшную вещь". Про экономику, Силуанова, пакет с пакетами и ЧТО ДАЛЬШЕ

СЛИТЫЕ ДОКЛАДЫ ФСБ: КИТАЙ ВЕДЕТ КИБЕРВОЙНУ ПРОТИВ РОССИИ. И присматривается к Дальнему Востоку

СЛИТЫЕ ДОКЛАДЫ ФСБ: КИТАЙ ВЕДЕТ КИБЕРВОЙНУ ПРОТИВ РОССИИ. И присматривается к Дальнему Востоку

Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду

Человечество навсегда ЗАПЕРТО в Солнечной системе? Астрофизик Борис Штерн раскрыл неприятную правду

ОГРОМНАЯ ИЗБА! ПОПАЛ ПОД ПРОЛИВНОЙ ДОЖДЬ. ИДУ ЗА ЩУКОЙ.

ОГРОМНАЯ ИЗБА! ПОПАЛ ПОД ПРОЛИВНОЙ ДОЖДЬ. ИДУ ЗА ЩУКОЙ.

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]