premier commit
This commit is contained in:
commit
61a53ab665
15
platformio.ini
Normal file
15
platformio.ini
Normal 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
22
src/main.cpp
Normal 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);
|
||||
}
|
Loading…
Reference in a new issue