Cours:PiPico : Différence entre versions
Ligne 4 : | Ligne 4 : | ||
** ./pico_project.py --gui | ** ./pico_project.py --gui | ||
**ne pas cocher "create VSCode project" | **ne pas cocher "create VSCode project" | ||
+ | |||
+ | =GPIO= | ||
+ | |||
+ | https://raspberrypi.github.io/pico-sdk-doxygen/group__hardware__gpio.html | ||
+ | |||
+ | *gpio_init(LED_PIN); | ||
+ | *gpio_put(LED_PIN, 1); | ||
+ | *gpio_set_dir(LED_PIN, GPIO_OUT); | ||
+ | *gpio_set_pulls (uint gpio, bool up, bool down) | ||
+ | |||
=liens= | =liens= |
Version du 21 novembre 2022 à 22:33
Créer/configurer un projet vscode
- pico_project.py
- git clone https://github.com/raspberrypi/pico-project-generator.git
- ./pico_project.py --gui
- ne pas cocher "create VSCode project"
GPIO
https://raspberrypi.github.io/pico-sdk-doxygen/group__hardware__gpio.html
- gpio_init(LED_PIN);
- gpio_put(LED_PIN, 1);
- gpio_set_dir(LED_PIN, GPIO_OUT);
- gpio_set_pulls (uint gpio, bool up, bool down)