Holiday Notice: Elecrow will be on holiday from May 1-4. You can still place orders during this time. PCB & PCBA orders will be processed from May 4th, and product orders will start shipping from May 5th. Enjoy the holidays!

user-img

Pabec

  • 9 Projects
  • 2 Followers
  • Apr 18,2025
+ Follow

spi oled 3.3v-5.0v

spi oled 3.3v-5.0v

spi oled 3.3v-5.0v
 
  • thumbnail-img
 

Story

 

This is spi oled 3.3v-5.0v. Note: The Github link of this project is: https://github.com/mike-rankin/spi_oled_3.3v-5.0v. This project is reposted with the approval of this project creator. He is a good DIY maker who designs custom ESP32 IoT projects using Altium Designer, Arduino IDE and Fusion360!!!! Welcome everyone to follow him. This is his GitHub account, Mike Rankin, where you will explore more excellent projects. 

 

 

 

/*********************************************************************

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 size 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.  

BSD license, check license.txt for more information

All text above, and the splash screen must be included in any redistribution

*********************************************************************/

 

#include <SPI.h>

#include <Wire.h>

#include <Adafruit_GFX.h>

#include <Adafruit_SSD1306.h>

 

//Adafruit Default  If using software SPI (the default case):

//#define OLED_MOSI   9

//#define OLED_CLK   10

//#define OLED_DC    11

//#define OLED_CS    12

//#define OLED_RESET 13

//Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

 

//My Arduino Nano Test Board

//#define OLED_DC 4

//#define OLED_CS 5

//#define OLED_CLK 2

//#define OLED_MOSI 3

//#define OLED_RESET 6

//Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

 

 

 

//* Uncomment this block to use hardware SPI

#define OLED_DC     4

#define OLED_CS   17  //NEW D17  

#define OLED_RESET  12

Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);

//*/

 

#define NUMFLAKES 10

Topic
View All

spi oled 3.3v-5.0v

spi oled 3.3v-5.0v

62
 
5
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 5 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Supported Purchase: Full After-sales Protection