Différences entre versions de « ENG-CANSAT-PICO-HowTo »
Sauter à la navigation
Sauter à la recherche
Ligne 4 : | Ligne 4 : | ||
This section of the tutoriel contains small portion of code explaining how to use digital pins, analog pins, buses and all the fundamentals to control the board with Python code. | This section of the tutoriel contains small portion of code explaining how to use digital pins, analog pins, buses and all the fundamentals to control the board with Python code. | ||
+ | Anyway, the followings are also goods and complete references. | ||
+ | |||
+ | {{ttuto-begin}} | ||
+ | |||
+ | {{ttuto | ||
+ | |label=Pico Python SDK | ||
+ | |descr=A MicroPython environment for RP2040 microcontrollers. | ||
+ | |img=tlogo-pico-python-sdk.jpg | ||
+ | |url=https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-python-sdk.pdf | ||
+ | }} | ||
+ | |||
+ | {{ttuto | ||
+ | |label=Arduino Yun | ||
+ | |descr=Arduino '''Yun''', spécialiste du WIFI et du Net. <font color="red">avec traduction de la librairie en français</font>. | ||
+ | |img=tlogo-yun.jpg | ||
+ | |link=Arduino Yun | ||
+ | }} | ||
+ | |||
+ | -- AUSSI AVEC LIEN VERS GITHUB -- | ||
+ | |||
+ | {{ttuto | ||
+ | |label=MOD-Wii-Chuck [UEXT] | ||
+ | |descr=Contrôleur de jeu I2C Wii Nunchuck. Exploiter le sous MicroPython (via port UEXT). | ||
+ | |img=tlogo-mod-wii-nunchuck.png | ||
+ | |url=https://github.com/mchobby/esp8266-upy/tree/master/modwii | ||
+ | }} | ||
+ | |||
+ | {{ttuto-end}} | ||
== Control an output == | == Control an output == |
Version du 21 février 2022 à 00:01
MicroPython How To
This section of the tutoriel contains small portion of code explaining how to use digital pins, analog pins, buses and all the fundamentals to control the board with Python code.
Anyway, the followings are also goods and complete references.
Arduino Yun, spécialiste du WIFI et du Net. avec traduction de la librairie en français.
-- AUSSI AVEC LIEN VERS GITHUB --
Contrôleur de jeu I2C Wii Nunchuck. Exploiter le sous MicroPython (via port UEXT).
Control an output
The onboard LED is tied to the GPIO 25. Here how to control it.
from machine import Pin
led = Pin(25, Pin.OUT)
led.value(1) # Switch on the LED
led.value(0) # Switch off the LED
This will work the same with any GPIO pins.
Written by Meurisse D. for MCHobby