I have a code for a dimmer led I want to put eeprom but I am new to Arduino and I don't have the knowledge for it can someone help? thank you very much
Welcome to the forum
You started a topic in the Uncategorised category of the forum when its description explicitly tells you not to
Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics
What do you want to do with the EEPROM ?
Please post your current sketch, using code tags when you do
Why do you want to put code in EEPROM? that does not make sense.
Please post this code so everyone can see it.
Do you mean that you want to retain some parameter in EEPROM that controls the brightness level of the led so that, the next time the Arduino starts, the previously set led brightness is used ?
I will put it in some application that wants to start where it left off my friend and I haven't found anything on the internet.
Thank you very much for answering, if you can and can help me, I would be grateful.
Στις Παρ 7 Φεβ 2025 στις 11:48 π.μ., ο/η 6v6gt via Arduino Forum <notifications@arduino.discoursemail.com> έγραψε:
OK so it's not the code you want in EEPROM, it's the value of the brightness.
Have you looked at the EEPROM documentation?
https://docs.arduino.cc/learn/built-in-libraries/eeprom/
Are you using an Arduino with actual EEPROM (like the UNO) ? some (like some ESP32) won't have a real EEPROM and the data will be saved in Flash. In which case you would want to use the Preferences library for example on ESP32.
What is it that causes the brightness to change ?
How often will the brightness change and require saving ?
It won't change often, but when you restart it should start from where it was last time.....and when the brightness changes it should start again at the same position...
Στις Παρ 7 Φεβ 2025 στις 12:23 μ.μ., ο/η UKHeliBob via Arduino Forum <notifications@arduino.discoursemail.com> έγραψε:
Please post your code.
Please be more precise. It affects whether EEPROM is the correct solution to the problem
it was because I am a new user..if you can
by email
MODERATOR EDIT : email address removed
you should not give your eMail in public forums, bots will pick it up and you'll get spam...
I am not sure why you want contact by email
Post the current sketch, the connection and wiring diagram to see how we can help.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.