A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stm32duino/M95640-R below:

stm32duino/M95640-R: Arduino library to support M95640-R SPI EEPROM

Arduino library to support the M95640-R SPI EEPROM

This sensor uses SPI to communicate.

For SPI it is then required to create a SPI interface before accessing to the sensors:

dev_spi = new SPIClass(SPI_MOSI, SPI_MISO, SPI_SCK);  
dev_spi->begin();

An instance can be created and enabled with SPI bus following the procedure below:

myM95640R = new M95640R(devSPI, D5);
myM95640R->begin();

If you want to read the EEPROM you can call the following API:

myM95640R->EepromRead(0x0000, 32, tmpBuffer);

If you want to write data into the EEPROM you can call the following API:

myM95640R->EepromWrite(0x0000, 32, tmpBuffer);

You can find the source files at
https://github.com/stm32duino/M95640-R

The M95640-R EEPROM datasheet is available at
https://www.st.com/content/st_com/en/products/memories/serial-eeprom/standard-serial-eeprom/standard-spi-eeprom/m95640-r.html


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4