premier commit

This commit is contained in:
user1 2023-05-23 16:49:42 +02:00
commit 61a53ab665
2 changed files with 37 additions and 0 deletions

15
platformio.ini Normal file
View file

@ -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

22
src/main.cpp Normal file
View file

@ -0,0 +1,22 @@
#include <Arduino.h>
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);
}