Skip to content

Hatem-Zehir/MicroPython-ESP32-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython-ESP32-Examples

This repository features the conversion of Arduino built-In examples to MicroPython.

What are Arduino built-In Examples

Built-In Examples are sketches found in the Arduino Software (IDE); to access them, select File > Examples from the toolbar menu. These easy programs show how to use all of the Arduino's basic commands. They cover anything from the bare minimum of a sketch to digital and analog IO, as well as the use of sensors and displays.

01.Basics

  • Analog Read Serial: Read a potentiometer, print its state out to the Serial Monitor.
  • Blink: Turn an LED on and off.
  • Digital Read Serial: Read a switch, print the state out to the Serial Monitor.
  • Fade: Demonstrates the use of analog output to fade an LED.
  • Read Analog Voltage: Reads an analog input and prints the voltage to the Serial Monitor.

02.Digital

03.Analog

  • Analog In Out Serial: Read an analog input pin, map the result, and then use that data to dim or brighten an LED.
  • Calibration: Define a maximum and minimum for expected analog sensor values.
  • Fading: Use an analog output (PWM pin) to fade an LED.
  • Smoothing: Smooth multiple readings of an analog input.

04.Communication

  • ASCIITable: Demonstrates ESP32's advanced serial output functions.
  • Dimmer: Move the mouse to change the brightness of an LED.
  • Physical Pixel: Turn a LED on and off by sending data to your ESP32 from Processing or Max/MSP.