티스토리 뷰
#include <EEPROM.h>
int addr = 0;
String InputString = "Test/String!";
int TestCount =0;
void setup() {
// put your setup code here, to run once:
EEPROM.begin(512);
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000);
String String1 = InputString + TestCount;
}
void b_WriteChar_EEPROM(int Address, char Char){
EEPROM.write(Address, Char);
EEPROM.commit();
}
void b_WriteString_EEPROM(int Address, int Length, char* Chars){
for(int Index1=0; Index1<Length; Index1++){
EEPROM.write(Address+Index1, Chars[Index1]);
}
EEPROM.commit();
}
char b_ReadChar_EEPROM(int Address){
return (char)EEPROM.read(Address);
}
String b_ReadChars_EEPROM(int Address, int Length){
String ReadString1 = "";
for(int Index1=0; Index1<Length; Index1++){
ReadString1 = ReadString1 + b_ReadChar_EEPROM(Address + Index1);
}
return ReadString;
}
반응형
'SWDesk > Firmware' 카테고리의 다른 글
LoRa Communication Test (0) | 2020.04.05 |
---|---|
[BMS] Bilient Monitoring System - Test02 (3) | 2020.03.30 |
[BMS] Bilient Monitoring System - Test01 (0) | 2020.03.29 |
Using ATMega328 with Internal Oscillator via Arduino-IDE (0) | 2020.03.20 |
IR-remote Examples for ESP8266 (0) | 2020.02.28 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 전류
- Innovation&Hurdles
- Innovations
- 절연형
- 배프
- 치매방지
- 허들
- image
- BSC
- Innovations&Hurdles
- 아두이노
- arduino
- 티스토리챌린지
- bilient
- Decorator
- badp
- Video
- 혁신과허들
- 오블완
- 전압전류모니터링
- 심심풀이치매방지기
- 심심풀이
- DYOV
- ServantClock
- 전압
- 빌리언트
- Hurdles
- 치매
- 혁신
- 둎
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함