• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Learn ESP32 with Arduino IDE: ESP32 Flash Memory – Store Permanent Data (Write and Read) – Schematic

Q&A Forum › Category: ESP32 › Learn ESP32 with Arduino IDE: ESP32 Flash Memory – Store Permanent Data (Write and Read) – Schematic
0 Vote Up Vote Down
Gustavo Santoro dos Santos asked 5 years ago

In my project I need to use this funcion.
In this video we see a debounce code to resolve the problem… in my case I want to make more inputs and more reads (3 leds for exemple )…
It´s a bad solution to set memory every time that I set the OUTPUT to HIGH or LOW , or no ?

The Debounce was used simple to show a debonce code or there´s other reason?

What do you think ?

Question Tags: debounce EEPROM memory ESP32
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Gustavo.

We use a debounce code for testing purposes and because we’re using a pushbutton. In final projects, I think it is always better to use a debounce code because it prevents false pushbutton presses or multiples “false” presses in a row.

To save the state of several GPIOs, it is better to use an array, and save that array in the flash memory, or use a different memory position for each GPIO state (which is easier to implement).

Saving the GPIO state in the flash memory and checking the GPIO state in the setup() assures that your GPIOs will return to its current state even when power is removed or when the ESP32 resets.

I hope this is clear.

Let me know if you need further help.

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.