Skip to content

Kongduino/BastWAN_EEPROM_Prefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BastWAN_EEPROM_Prefs

A project demonstrating how to use an EEPROM on the BastWAN to read and write prefs.

Prefs

SparkFun_External_EEPROM.h

You need to define the buffer lengths in SparkFun_External_EEPROM.h. BastWAN isn't recognized. Around line 56:

#elif defined(ESP32)
#define I2C_BUFFER_LENGTH_RX I2C_BUFFER_LENGTH
#define I2C_BUFFER_LENGTH_TX I2C_BUFFER_LENGTH

// DEFINITION FOR BASTWAN
#elif defined(_VARIANT_ELECTRONICCATS_BASTWAN_)
#define I2C_BUFFER_LENGTH_RX SERIAL_BUFFER_SIZE
#define I2C_BUFFER_LENGTH_TX SERIAL_BUFFER_SIZE

#else
#pragma GCC error "This platform doesn't have a wire buffer size defined. Please contribute to this library!"

#endif

Once this is done, you should be able to compile the code without problems.

About

How to read and save prefs on an EEPROM with a BastWAN

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages