Skip to content

Commit

Permalink
Merge pull request #143 from PiFou86/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
PiFou86 committed Dec 18, 2023
2 parents b031d1d + 999e3e3 commit 39c8ecd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions random/EEPROM/include/SauvegardeDonneesEEPROM.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ void SauvegardeDonneesEEPROM<TypeDonneesASauvegarder>::afficherContenuEEPROM() {
Serial.print(TEXT_BOLD);
Serial.print(TEXT_BG_BLACK);
Serial.print(TEXT_BLUE);
} else if (adresseAAfficher == ADRESSE_ADRESSE_DEBUT_DONNEES ||
adresseAAfficher == ADRESSE_ADRESSE_DEBUT_DONNEES + 1) {
Serial.print(TEXT_BOLD);
Serial.print(TEXT_BG_BLACK);
Serial.print(TEXT_YELLOW);
} else if (adresseAAfficher == adresseDonnees ||
adresseAAfficher == adresseDonnees + 1) {
Serial.print(TEXT_BOLD);
Expand Down
4 changes: 3 additions & 1 deletion random/EEPROM/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
struct MaStructure {
int a;
int b;
char c[16];
};

void setup() {
Expand All @@ -15,7 +16,8 @@ void setup() {
MaStructure maStructure;
maStructure.a = 0x1234;
maStructure.b = 0x4321;
SauvegardeDonneesEEPROM<MaStructure> sauvegardeDonneesEEPROM(0x6666);
strcpy(maStructure.c, "Chocolatine !");
SauvegardeDonneesEEPROM<MaStructure> sauvegardeDonneesEEPROM(0x0666);
sauvegardeDonneesEEPROM.afficherContenuEEPROM();
//for (size_t i = 0; i < 1024; i++) {
for (size_t i = 0; i < 2; i++) {
Expand Down
Binary file modified random/img/EEPROM_debug.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39c8ecd

Please sign in to comment.