matiasus / ssd1306 Goto Github PK
View Code? Open in Web Editor NEWC library for SSD1306 OLED Driver
License: GNU General Public License v3.0
C library for SSD1306 OLED Driver
License: GNU General Public License v3.0
I use ATMEGA328P and when I build the application, it uses about 1000Bytes Data Memory (~50%). I would like to ask you, if I do something wrong or is that (SSD-LIB) usually that big (DATA Memory Usage).
Kind Regards
Hi, I'm new to this forum but not to hardware/software, still I spent weeks on understanding the controller and how to control it.
I have read loads of how to initiate the controller with all kinds of settings which you can't find in the datasheet and still having problem.
I'm using ARM(NXP) and I2C(400Khz), and bare metal code. I have the same I2C routines that I have been using for 10 years so I think they are working, but now to one of many problems.
I initiate the SSD1306 to page mode setting......and all that, when I try to send text at Page 0(0xB0) with LSB=0x00 and MSB=0x10, should be Colum 0 at page 0, then I see the text I want to display, then I set page 0 and colum 0 again and try to clear everything, nothing happens. I have verified all one bytes command and they work all fine. Regarding any timing issues I normally step with debugger and there is no difference by running with breakpoints or not. I have seen so many interpretations regarding how to send CMND/DATA, but I'm using it like this ADR_SSD1306 = 0x78, // 0111 10+SA0(D/#C)+W
mDATA_ = 0xC0, // 1100 0000 multiple Data
mCMND_ = 0x80, // 1000 0000 multiple Command
sDATA_ = 0x40, // 0100 0000 single Data
sCMND_ = 0x00 // 0000 0000 single Command
So, does any have any ideas about this and make my day ?
Cheers
CK
Line 522 in ce135fa
I think there is an issue with the parameter checking in this routine?
if ((x > MAX_X) && (y > MAX_Y)) {
// out of range
return SSD1306_ERROR;
}
It should be '||' as we need both parameters to be in range?
Could you please mention the necessary changes need to be done for using this library with atmega 128 chip?
I'm attempting to use your library with the 128X32 .91" display. I have tested it by loading the Adafruit sketch in Arduino and it works as expected. Moving to native C in Atmel Studio with this library, the output sometimes resembles text but is too small and the top is cut off. Any thoughts on what to check?
Setup:
#define SSD1306_SET_MUX_RATIO 0x1F
#define SSD1306_COM_PIN_CONF 0x02
#define END_PAGE_ADDR 3
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.