commit 61a53ab665c64a9ecdff590fdbb2ce6b073c1091 Author: user1 Date: Tue May 23 16:49:42 2023 +0200 premier commit diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..688a229 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,15 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:esp32-devkitlipo] +platform = espressif32 +board = esp32-devkitlipo +framework = arduino +monitor_speed = 9600 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..b4eb434 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,22 @@ +#include +const int potPin = 33; +//la valeur du potentiomètre + + +float potvalue=0.00; + + +void setup() { +//pinMode(potPin,INPUT); +Serial.begin(9600); + + +} +void loop() { + + +//mesure la valeur du potentiomtre +potvalue=analogRead(potPin); +Serial.println (potvalue); +delay(1000); +} \ No newline at end of file