Read ultrasonic sensor data in EEPROM

Hi, for my exam I need to use Arduino and I’m very bad. So I do to transfer the ultrasonic sensor data to a EEPROM memory but my program is fill to falts
This I make ( Sorry for my english ). Pour les francais : Salut pour mon projet de fin d’année j’ai besoin de transférer les données prises par mon capteur à ultrason vers une mémoire EEPROM mais le problème c’est que je uis vriament nul en Arduino est don forcemment mon programme est remplie de fautes :frowning:

Voici ce que j’ai fais pour l’instant

#include <EEPROM.h>;
#include <LiquidCrystal.h>;
LiquidCrystal lcd(8,9,4,5,6,7);
const char START=2;
const char STOP=3;
int i=0;
int TRIGGER = 23;
int ECHO = 24;
long LECTURE_ECHO;
long CM;
int Distance;
int val

char lect_clavier()
{
int x;
char val;
x = analogRead (0); // CAN A0 (lecture des touches)
if (x < 60)
{
val = START;
}
else if (x<200)
{
val = STOP;
}
}

void MESURE()
{
digitalWrite(TRIGGER, HIGH);
delayMicroseconds(10);
digitalWrite(TRIGGER, LOW);
LECTURE_ECHO = pulseIn(ECHO, HIGH);
CM = LECTURE_ECHO / 58;
Serial.print("Distancem : ");
Serial.println(CM);
delay(1000);
}
void setup()
{
pinMode(TRIGGER, OUTPUT);
digitalWrite(TRIGGER, LOW);
pinMode(ECHO, INPUT);
Serial.begin(9600);
}

void loop()
{
do while (lect_clavier != START); // Tant que BP1 est à 1
{
i=0;
MESURE();
val= analogRead(0)/4;
EEPROM.write (i;100)
i=i+1;
if (i == EEPROM.length())
{
i=0;
delay (100);
char lect_clav();
}
else
{
delay (5000);
goto do while (lect_clavier != START):

}
}
}

Some one can help me to correct or to improve my program please !!!
Quelqu’un pourrais m’aider à corriger ou à ameliorer mon programme SVP !!!

houssene75:
and I'm very bad.

I suspect the problem is that you are not doing any analytical thinking. If you were I doubt that you would have considered posting that question in the section of the Forum that deals with questions about how the Forum works.

I will ask the Moderator to move it to the French section as that seems to be your native language.

In whatever language, you need to explain what your program actually does and what, exactly, you want it to do.

...R

Merci d’utiliser les balises pour plus de lisibilité.

Tel que posté, le code ne compile pas.