Modifications

Sauter à la navigation Sauter à la recherche
56 octets ajoutés ,  22 avril 2025 à 00:36
Ligne 101 : Ligne 101 :  
=== Step 4: setup parameter ===
 
=== Step 4: setup parameter ===
   −
The ''setup'' parameter when calling the {{fname|setup()}} method can be used to configure additional hardware (or sensors).
+
When calling the {{fname|setup()}} method, the ''setup'' parameter is used to reference a configuration routine. That routine is used to configure additional hardware (or sensors).
    
The example here below use a setup() routine that creates a [https://shop.mchobby.be/fr/cartes-breakout/1118-bmp280-senseur-de-pression-barometrique-temperature-altitude-33-et-5v-3232100011182-adafruit.html BMP280 athmospheric pressure sensor] then attach it to the {{fname|din}} instance as {{fname|sensor}} attribute.
 
The example here below use a setup() routine that creates a [https://shop.mchobby.be/fr/cartes-breakout/1118-bmp280-senseur-de-pression-barometrique-temperature-altitude-33-et-5v-3232100011182-adafruit.html BMP280 athmospheric pressure sensor] then attach it to the {{fname|din}} instance as {{fname|sensor}} attribute.
32 908

modifications

Menu de navigation