mikaelpatel / arduino-spi Goto Github PK
View Code? Open in Web Editor NEWSerial Peripheral Interface (SPI) library for Arduino.
Home Page: https://mikaelpatel.github.io/Arduino-SPI/
Serial Peripheral Interface (SPI) library for Arduino.
Home Page: https://mikaelpatel.github.io/Arduino-SPI/
I am trying to use your library to let me extend my SRAM on Arduino Mega.
I am using this wire configuration with 23LC1024:
https://www.dropbox.com/s/lmacvq9q74d72mb/Captura%20de%20tela%202017-10-18%2012.34.44.png?dl=0
23LC1024 -> Arduino Mega
1 CS (Chip Select) -> D53
2 SO (Slave Out) -> D50 (MOSI)
4 Vss (Ground) -> Ground
5 SI (Slave In) -> D51 (MISO)
6 SCK (Clock) -> D52 (Clock)
I am using the example: Arduino-Storage -> Stream
And I changed it to:
#include "Storage.h"
#include "GPIO.h"
#include "SPI.h"
#include "MC23LCXXX.h"
#define USE_SOFTWARE_SPI
//#define USE_HARDWARE_SPI
#if defined(USE_SOFTWARE_SPI)
#include "Software/SPI.h"
Software::SPI<BOARD::D51, BOARD::D50, BOARD::D52> spi;
#elif defined(USE_HARDWARE_SPI)
#include "Hardware/SPI.h"
Hardware::SPI spi;
#endif
// External memory storage
MC23LC1024<BOARD::D53> sram(spi);
But with or without the 23LC1024 is attached to the arduino. For me shows the same SRAM Size:
sram.SIZE = 131072
sram.room = 111072
am I doing something wrong? Thanks
Use @tparam.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.