microc:uc:pyportal

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
microc:uc:pyportal [2023/08/18 12:44] philmicroc:uc:pyportal [2023/08/19 10:48] (Version actuelle) phil
Ligne 9: Ligne 9:
     * <html><a href="https://www.adafruit.com/product/4116" target="_blank">Adafruit PyPortal - CircuitPython Powered Internet Display</a></html>     * <html><a href="https://www.adafruit.com/product/4116" target="_blank">Adafruit PyPortal - CircuitPython Powered Internet Display</a></html>
     * <html><a href="https://learn.adafruit.com/adafruit-pyportal/overview" target="_blank">Adafruit PyPortal - IoT for CircuitPython (overview)</a></html>     * <html><a href="https://learn.adafruit.com/adafruit-pyportal/overview" target="_blank">Adafruit PyPortal - IoT for CircuitPython (overview)</a></html>
-    * <html><a href="https://circuitpython.readthedocs.io/en/6.1.x/docs/index.html" target="_blank">Documentation CircuitPython</a></html>+    * <html><a href="https://docs.circuitpython.org/en/latest/README.html" target="_blank">Documentation CircuitPython</a></html>
  
-==== 1. Présentation du module ====+==== 1. Généralités ====
 Le **PyPortal** a été développé pour l'"**Internet des objets**". Il permet de créer des interfaces graphiques à écran tactile en Python ou Arduino. Le **PyPortal** a été développé pour l'"**Internet des objets**". Il permet de créer des interfaces graphiques à écran tactile en Python ou Arduino.
 {{ :python:micropython:materiel:pyportal.jpg?nolink |}} {{ :python:micropython:materiel:pyportal.jpg?nolink |}}
  
 +==== 2. Principales caractéristiques ====
   * **Microcontrôleur** : ATSAMD51J20   * **Microcontrôleur** : ATSAMD51J20
     * Cortex-M4 à 120 MHz     * Cortex-M4 à 120 MHz
Ligne 29: Ligne 30:
     * Connectique pour 2 entrées analogiques ou numériques     * Connectique pour 2 entrées analogiques ou numériques
   * **Divers**   * **Divers**
-    * Haut parleur+    * Haut-parleur
     * Capteur de lumière     * Capteur de lumière
     * Capteur de température (ADT7410 résolution 16bits (0,0078°C))     * Capteur de température (ADT7410 résolution 16bits (0,0078°C))
     * Néopixel     * Néopixel
  
-==== 2. Mise en oeuvre ====+==== 3. Préparation  ==== 
 +=== 3.1 Configuration de CircuitPython === 
 +  * Source sur <html><a href="https://learn.adafruit.com/adafruit-pyportal/pyportal-circuitpython-setup" target="_blank">adafruit</a></html>
 + 
 +=== 3.Configuration de l'IDE Arduino === 
 +  * Source sur <html><a href="https://learn.adafruit.com/adafruit-pyportal/setup" target="_blank">adafruit</a></html>
 +==== 4. Mise en oeuvre ==== 
 +<tabs> 
 +  * [[#tab-micropy_1|MicroPython]] 
 +  * [[#tab-arduino_1|Arduino]] 
 + 
 +<pane id="tab-micropy_1">
   * **Mise à jour**   * **Mise à jour**
     -  **Bootloader** \\ **Source** : <html><a href="https://learn.adafruit.com/adafruit-pyportal/update-the-uf2-bootloader" target="_blank">Update the UF2 Bootloader</a></html> \\ \\ a. **Double-cliquer** sur le bouton de réinitialisation. {{ :python:micropython:materiel:portalboot.png?nolink&500 |}} \\ b. <html><a href="https://circuitpython.org/board/pyportal/">Télécharger</a></html> le chargeur de démarrage .UF2 et le faire glisser dans la fenêtre PORTALBOOT. \\ \\      -  **Bootloader** \\ **Source** : <html><a href="https://learn.adafruit.com/adafruit-pyportal/update-the-uf2-bootloader" target="_blank">Update the UF2 Bootloader</a></html> \\ \\ a. **Double-cliquer** sur le bouton de réinitialisation. {{ :python:micropython:materiel:portalboot.png?nolink&500 |}} \\ b. <html><a href="https://circuitpython.org/board/pyportal/">Télécharger</a></html> le chargeur de démarrage .UF2 et le faire glisser dans la fenêtre PORTALBOOT. \\ \\ 
Ligne 51: Ligne 63:
     * **Sous répertoire**     * **Sous répertoire**
       * **lib** pour rassembler les bibliothèques nécessaires à l'application. Celles-ci seront copiées à partir du paquet (<html><a href="https://learn.adafruit.com/adafruit-pyportal/circuitpython-libraries" target="_blank">bundle</a></html>) correspondant à la version de CircuitPython       * **lib** pour rassembler les bibliothèques nécessaires à l'application. Celles-ci seront copiées à partir du paquet (<html><a href="https://learn.adafruit.com/adafruit-pyportal/circuitpython-libraries" target="_blank">bundle</a></html>) correspondant à la version de CircuitPython
 +
   * **Test**   * **Test**
 <code python *.py> <code python *.py>
Ligne 67: Ligne 80:
     time.sleep(0.1)     time.sleep(0.1)
 </code> </code>
 +</pane>
 +<pane id="tab-arduino_1">
 +A faire
 +</pane>
 +</tabs>
  
-==== 3. Configuration du circuit PyPortalPython ==== +==== 5. Bibliothèques ==== 
-  * Source sur <html><a href="https://learn.adafruit.com/adafruit-pyportal/pyportal-circuitpython-setup" target="_blank">adafruit</a></html> pour une configuration minimum. +  * Bundle de bibliothèques CircuitPython à <html><a href="https://circuitpython.org/libraries" target="_blank">télécharger</a></html>.
- +
-==== 4. Bibliothèques ==== +
-  * <html><a href="https://circuitpython.org/libraries" target="_blank">Téléchargement et installation</a></html> du bundle de bibliothèques.+
  
-==== 5. Exemples ====+==== 6. Exemples ====
   * **Extraits de code** illustrant les fonctionnalités de la carte (capteur, carte µSD, etc.) : <html><a href="https://www.devdungeon.com/content/pyportal-circuitpy-tutorial-adabox-011#toc-30" target="_blank">Tutoriel PyPortal CircuitPy Tutorial (AdaBox 011)</a></html>     * **Extraits de code** illustrant les fonctionnalités de la carte (capteur, carte µSD, etc.) : <html><a href="https://www.devdungeon.com/content/pyportal-circuitpy-tutorial-adabox-011#toc-30" target="_blank">Tutoriel PyPortal CircuitPy Tutorial (AdaBox 011)</a></html>  
  • microc/uc/pyportal.1692355475.txt.gz
  • Dernière modification : 2023/08/18 12:44
  • de phil