xfpd
June 17, 2023, 8:57pm
22
Have you tried this library?
It does SPI (DC, RST, CS).
/**************************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x64 pixel display using SPI to communicate
4 or 5 pins are required to interface.
Adafruit invests time and resources providing this open
source code, please support Adafruit and open-source
hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries,
with contributions from the open source community.
BSD license, check license.txt for more information
All text above, and the splash screen below must be
included in any redistribution.
**************************************************************************/
This file has been truncated. show original
it is very strange that there is no CS pin on my screen. Could it be a problem with it?
The reset pin has to be something other then -1 as your screen has RST(reset), also you need to set the solder blob(red circle) on the back to select I2C or SPI.
This is my screen. It is not compatible with the picture on the seller. If I can return it, do you think I should return it? Or should I try?
OK, SPI screen you need to use the Library @xfpd suggested in post #22 .
Pinout is as follows
D0 is CLK or SCK.
D1 is MOSI.
RES is RESET.
DC is DC.
Return it if you like, but no harm with trying.
2 Likes
Thank you. I was able to operate the screen. Thank you very much for this information...
Thanks for being able to help you.
1 Like
system
Closed
December 16, 2023, 9:50am
30
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.