Hello guys i'm working on an application where i need to save 2 float numbers in flash memory (i need them when the msp lose power) ,i have the hardware part done but i can't figure out the coding i'm very new to programing.
I need to do something like this.
int sensorPin = 23;
int sensorValue = 0;
float volt;
// loop part
sensorValue = analogRead(sensorPin);
unsigned long currentMillis = millis();
timp=currentMillis/1000;
if(currentMillis - previousMillis > interval) {
previousMillis = currentMillis;
volt=sensorValue;
volt=(volt*3.3)/4096;
volt=vol