In this session we’re going to take a look on how to interact with the ESP32 General Purpose Input/Output (GPIOs) pins using MicroPython.
We’ll show you how to read digital and analog inputs, how to control digital outputs and how to generate PWM signals.
We’ll build a simple circuit that works as follows:
Read the state of a pushbutton and set the LED state accordingly - when you press the pushbutton the LED lights up and when not pressed goes out.
Also read the voltage from a potentiometer and dim an LED accordingly to the shaft’s position of the potentiometer.
www.sunfounder.com/?ref=k077oxrv
Негізгі бет Lets Interact With The GPIOs On The ESP32 Using MicroPython
Пікірлер