generated from mhausenblas/mkdocs-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a97f1c
commit 95f2731
Showing
19 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Bouton d'arcade | ||
|
||
## Le bouton d'arcade 5V SANS résistance | ||
|
||
### Référence du produit | ||
|
||
* [50 PCS 28mm / 24mm 5V LED Illuminated Light Push Button With Mirco Swich Nut Round Body For DIY Arcade Raspberry Pi sur Aliexpress](https://www.aliexpress.us/item/2255800032195150.html) | ||
|
||
|
||
### Microsoudure du bouton d'arcade 5V SANS résistance | ||
|
||
![Poser des bulles de métal sur les quatre pattes du bouton d’arcade](./bouton_arcade_soudure1.svg) | ||
|
||
![Effectuer la microsoudure de deux câbles à une paire de pattes](./bouton_arcade_soudure2.svg) | ||
|
||
![Effectuer la microsoudure des deux autres pattes](./bouton_arcade_soudure3.svg) | ||
|
||
![Identification des broches](./bouton_arcade_identification.png) | ||
|
||
![Connexion des broches](./bouton_arcade_connexion.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
rel-electro-immersif-src/m5stack/unit_396_bouton_arcade.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# M5Stack Unit 3.96 et bouton d'arcade | ||
|
||
## Référence du bouton d'arcade | ||
|
||
* Adafruit. (s. d.). Arcade Button with LED – 30mm Translucent Red. [https://www.adafruit.com/product/3489](https://www.adafruit.com/product/3489) | ||
|
||
## Prépration | ||
|
||
![Soudure du bouton](./unit_396_bouton_arcade_soudure.png) | ||
|
||
![Connexion du bouton au Unit 3.96](./unit_396_bouton_arcade_connexion.png) | ||
|
||
## Utilisation | ||
|
||
### Code à ajouter à setup() | ||
|
||
Dans `setup()`, initialiser les broches, dans ce cas-ci, les broches du ATOM Lite : | ||
```arduino | ||
pinMode(32, INPUT_PULLUP); | ||
pinMode(26, OUTPUT); | ||
``` | ||
|
||
|
||
### Code à utiliser dans la boucle à intervalle régulier dans loop() | ||
|
||
Pour obtenir la valeur du bouton : | ||
```arduino | ||
int monEtatBouton = digitalRead(32); | ||
``` | ||
|
||
Pour allumer la DEL du bouton : | ||
```arduino | ||
digitalWrite(26, 1); | ||
``` | ||
|
||
Pour éteindre la DEL du bouton : | ||
```arduino | ||
digitalWrite(26, 0); | ||
``` | ||
|
||
Pour allumer la DEL du bouton quand on appuie dessus : | ||
```arduino | ||
int monEtatBouton = digitalRead(32); | ||
if (monEtatBouton == 1) { | ||
digitalWrite(26, 0); | ||
} else { | ||
digitalWrite(26, 1); | ||
} | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+278 KB
rel-electro-immersif-src/m5stack/unit_396_bouton_arcade_soudure.png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.