pkourany / adafruit_ssd1306 Goto Github PK
View Code? Open in Web Editor NEWAdafruit_SSD1306 library ported for Spark
Adafruit_SSD1306 library ported for Spark
How can I just use this project along with particle compile
&& particle flash
Running the project from scratch and doing particle flash XXX .
gives this
Flash device failed
[object Object]
The Particle Community Libraries list your name but actually link to mpechner/Adafruit_SSD1306 on github so 404 error
is generated.
Not sure what the next step would be without creating an Adafruit_SSD1306_128x64.h and Adafruit_SSD1306_128x32.h and importing the proper one (at when trying to use this library within the web IDE)
When prahaladm recoded for the arandom() change no one undid the changes in the rest of the file. I know I was having issues getting this to run with the function called random. Would the solution be to fall back to rand()?
I am trying to use a 128x64 spi oled with this code and a photon:
https://github.com/pkourany/Adafruit_SSD1306/blob/master/ssd1306_128x64_spi.ino#L33-L37
what I find confussing is that according to
https://docs.particle.io/reference/firmware/photon/#spi
SPI1 that is used here uses:
SS => D5 (default)
SCK => D4
MISO => D3
MOSI => D2
but the defines I linked to do
#define OLED_DC D3
#define OLED_CS D4
#define OLED_RESET D5
so OLED_CS would be connected to the SPI1.SCK (spi clock) pin, were instead it should probably be D5
(CS = chip select -> SS = slave select)? Also which pin is actually used for the clock then?
and OLED_DC would be MISO instead of MOSI?
Furthermore shouldn't
https://github.com/pkourany/Adafruit_SSD1306/blob/master/Adafruit_SSD1306.cpp#L167
- SPI.begin()
+ SPI.begin(cs)
otherwise it will configure D5 for SS (even though its probably no hard since it will only configure it to be an output).
Here is how I am using it - SW mode works, but HW doesn't:
#if 0
// HW SPI
//#define OLED_DC D3
#define OLED_DC D1
//#define OLED_CS D4
// our module does not support CS/SS
#define OLED_CS D0
#define OLED_RESET D5
Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
#else
// SW SPI
#define OLED_CS D0
#define OLED_DC D1
#define OLED_MOSI D2
#define OLED_CLK D4
#define OLED_RESET D5
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
#endif
Hey,
I am trying to get this to work with a sparkstump.
But I am getting
Adafruit_GFX.h:4:25: error: application.h: No such file or directory
Where do I get application.h from?
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.