esp32
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
esp32 [2024/09/22 14:05] – created bruno | esp32 [2025/03/06 20:28] (current) – bruno | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === ESP32 === | + | ==== Préambule ==== |
- | == Les vidéos de Tommy Desrochers | + | Les vidéos de Tommy Desrochers: |
* [[https:// | * [[https:// | ||
Line 9: | Line 9: | ||
* [[https:// | * [[https:// | ||
- | == Install config sous Linux == | + | ==== Installation ==== |
+ | |||
+ | === Install config sous Linux === | ||
+ | |||
+ | Sous Debian 12, lors du 1er test, j'ai reçu ces deux messages d' | ||
+ | |||
+ | * Error Msg: '' | ||
+ | * Error msg: '' | ||
+ | |||
+ | |||
+ | On va donc, d' | ||
+ | |||
+ | * ''# | ||
+ | * ''# | ||
+ | |||
+ | Suivi de l' | ||
- | * [[https:// | ||
* Download Aduino IDE: [[https:// | * Download Aduino IDE: [[https:// | ||
* Unzip : '' | * Unzip : '' | ||
Line 20: | Line 34: | ||
* Menu Tools -> Port -> / | * Menu Tools -> Port -> / | ||
- | == Test1 == | + | ==== Test ==== |
* Menu File -> example -> ESP32 -> ChipID -> GetChipID | * Menu File -> example -> ESP32 -> ChipID -> GetChipID | ||
* Upload: Menu Sketch -> Upload | * Upload: Menu Sketch -> Upload | ||
- | * Error Msg: '' | ||
- | * Error msg: '' | ||
* Menu Tools -> Serial Monitor | * Menu Tools -> Serial Monitor | ||
* Change to 115200 Baud | * Change to 115200 Baud | ||
Line 35: | Line 47: | ||
</ | </ | ||
- | * [[https://gist.github.com/plembo/37e0d4c3cabaead6a150e61d6a8c3035]] | + | ==== Serial Output ==== |
+ | |||
+ | <code c> | ||
+ | void setup() { | ||
+ | Serial.begin(115200); | ||
+ | while (!Serial) continue; | ||
+ | Serial.println(" | ||
+ | } | ||
+ | void loop() { | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== K2000 ==== | ||
+ | [26/09/2014] | ||
+ | |||
+ | Suite illogique des pins GPIO | ||
+ | |||
+ | GPIO-1 en OUTPUT -> conflit avec sortie serial | ||
+ | <code c> | ||
+ | #include <math.h> | ||
+ | const float pi = 3.14159; | ||
+ | const int ledPin[7] = {5, | ||
+ | |||
+ | void setup() { | ||
+ | for (int i=0; i<7; i++) { | ||
+ | pinMode (ledPin[i], OUTPUT); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | for (float ang=-pi; ang<pi; ang=ang+(2*pi/700)) { | ||
+ | int led = (1+std:: | ||
+ | digitalWrite (ledPin[led], HIGH); | ||
+ | delay(1); | ||
+ | digitalWrite (ledPin[led], LOW); | ||
+ | } | ||
+ | } | ||
+ | </ | ||
esp32.1727013909.txt.gz · Last modified: 2024/09/22 14:05 by bruno