user-img

Pabec

  • 46 Projects
  • 5 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 is GitHub account: https://github.com/mike-rankin where you will explore more excellent projects. He is a good DIY maker who designs custom ESP32 IoT projects using Altium Designer, Arduino IDE and Fusion360. Welcome everyone to follow.

 

 

 

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

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

320
 
11
0
0

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

  • Comments( 0 )
  • Like( 11 )
/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:
Country: Shipping Way:
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 | Guaranteed Purchase: Full techsupport