#include <EEPROM.h>
int num1 = 0;
int num2 =255;
String msj ="" ;
void setup() {
Serial.begin(9600);
EEPROM.get(0,num2);
Serial.println(255);
Serial.println(0);
// put your setup code here, to run once:
}
void loop() {
if (Serial.available()>0){
char x = Serial.read();
if(x != '\n'){
msj = msj+x;
}
else{
EEPROM.put(msj.toInt )()
// put your main code here, to run repeatedly:
}