Initialize the SPI busret=spi_bus_initialize(EEPROM_HOST, &buscfg, DMA_CHAN); ESP_ERROR_CHECK(ret);//Attach the LCD to the SPI busret=spi_bus_add_device(EEPROM_HOST, &devcfg, &external_flash); ESP_ERROR_CHECK(ret); } my full .h file:...
I found the example that Espressif provides for using SPI1 external https://github.com/espressif/esp-idf/bl ... i_eeprom.c but this seems to completely implement the EEPROM interface within the code and marks a ton of support libraries as noflash in the linker. If I want to inherit ...
bus_config.sclk_io_num, device_config.cs_io_num);//Initialize the SPI busESP_ERROR_CHECK(spi_bus_initialize(VSPI_HOST, &bus_config,1));//Add device to the SPI busesp_flash_t* ext_flash;ESP_ERROR_CHECK(spi_bus_add_flash_device(&ext_flash, &device_config));//Probe the Flash chi...
using ace_utils::crc_eeprom::CrcEepromEsp Summary: Store data structures in EEPROM with a CRC check. Depends on: AceCRC (https://github.com/bxparks/AceCRC) Command Line Interface (CLI) src/cli/README.md Header files #include <AceUtils.h> `#include <cli/cli.h> using namespace ...
For testing, pack it together and save the code on ESP as ‘eeprom.lua‘, restart ESP and run: require('eeprom') -- call for new created AT24C32 Module Driver memadr=0x00 -- let's read from begining sda, scl = 2, 1 -- I2C pins setup ...