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
% Original template by Abhinay Korukonda | |
% Heavily modified by Matthew Tran | |
%%% PACKAGES | |
% Used for scaling | |
\usepackage{relsize} | |
% Font | |
\usepackage{tgpagella} | |
% Microtyping, apparently makes things look better |
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 "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; |
OlderNewer