Comments (5)
check this
https://playground.arduino.cc/Main/SoftwareI2CLibrary
from adafruit_ssd1306.
You cannot change the i2c pins to any pins you want. An i2c device has to be on i2c pins.
from adafruit_ssd1306.
I run into the same issue because PIN 5 on my nano are occupied by freqcount library and can be definetly not changed to another pin because of this "interrupt" thing ... so this pins is not available for me to use SCL.
from adafruit_ssd1306.
In the meantime, this pull request has what you want (example for SDA/SCL on 5/4): ESP32/ESP8266 I2C Clock Speed 800kHz & user-definable I2C GPIO Pins
How to get it:
- git clone library into your arduino library folder
- check out above pull request locally (e.g. see Checking Out GitHub Pull Requests Locally)
- initialize display with something like this:
display.begin(SSD1306_SWITCHCAPVCC, 0x3C, 0, 5, 4, 800000 );
from adafruit_ssd1306.
TwoWire pointers are now supported - if you make a Wire object that is compatible it will work!
from adafruit_ssd1306.
Related Issues (20)
- .
- Where is the method "print" located in this library? I was trying to find the implementatin of the method "print" and "println" for the oled display. I found the line in the example "display.println(F("Hello, world!"));" But where is this method? HOT 2
- display.display(), arbitrary display area refresh
- not able to run ESP32 and SSD1306 128x64 i2c HOT 4
- display.begin() always true HOT 3
- Using clearDisplay() in the main loop causes Arduino Micro / Pro Micro bootloader to crash HOT 5
- reset pin not activated properly on stm32 bluepill
- Character's size HOT 2
- SPI communication is very slow
- pgmspace.h: No such file or directory for Raspberry Pi Pico HOT 4
- Custom i2c pins for ESP32 HOT 2
- The problem with the screen
- Cannot compile for Arduino Nano RP2040 Connect HOT 3
- lcd oled 64x48 no working
- inharmony with SD.h
- Teensy issue on top row. HOT 2
- error when several ssd1306 128x64 HOT 1
- Not compatible with ATmega328PB (Watterrott Pro Mini PB)? HOT 1
- [Feature Request] One instance - multiple devices
- adc_timer_dma and Adafruit SSD1306_128x32_i2c reboot loop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_ssd1306.