This file contains 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" | |
extern I2C i2c; | |
namespace EEPROM { | |
void resetEEPROM() { | |
char buff[MAX_BLOCK_WRITE]; | |
for (uint16_t i = 0; i < MAX_BLOCK_WRITE; i++) { | |
buff[i] = 0xFF; |
This file contains 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 "WLPROM.h" | |
namespace WLPROM { | |
void read(WLData* dat) { | |
EEPROM::readBites(findData(), (char*) dat, sizeof(WLData)); | |
} | |
void write(WLData* dat) { | |
uint16_t next_addr = findData() + sizeof(WLData); |
This file contains 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 <Encoder.h> | |
#include <EEPROM.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 64 // OLED display height, in pixels |
OlderNewer