Created
August 15, 2017 08:24
-
-
Save ByErdem/32d1a6b355f0ca8134cb693d24f15d65 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "EEPROM.h"; | |
// This code is used for save wifi name and password. | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
Serial.print("deneme"); | |
int a=21; | |
int b1 =1; | |
char str[]= "wifi_adi|wifi_sifresi"; | |
int c; | |
EEPROM.write(0,a); | |
Serial.print("Kayit basarili"); | |
c=EEPROM.read(0); | |
Serial.print(c); | |
for(int i = 1; i < a+1; i++){ | |
EEPROM.write(i,str[i-1]); | |
//theBuffer[i] = EEPROM.read(i); | |
Serial.print(str[i-1]); | |
} | |
for(int i = 1; i<c+1;i++){ | |
char okunan = EEPROM.read(i); | |
Serial.print(okunan); | |
} | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment