Comments (6)
I need to add: the option to define SDA and SCL pins is not an issue. Just connect the OLED where Adafruit wants it. But I want to be able to use the "screen saver" which Adafruit does not seem to have.
from u8g2.
The reference position for the string is the lower left corner of the glyphs (baseline) as you can see in the example image here: https://github.com/olikraus/u8g2/wiki/u8g2reference#drawstr
This can be change with the font-position functions: https://github.com/olikraus/u8g2/wiki/u8g2reference#setfontpostop
Wrap around effects can be avoided by putting u8g2 into 16 bit mode (see FAQ https://github.com/olikraus/u8g2/blob/master/doc/faq.txt). 16 Bit mode is automatically activated with ESP32.
from u8g2.
from u8g2.
Using the Adafruit_SH110X.h and Adafruit_GFX.h libraries provides the solution to the problem as well as a "screen saver" as I just found out. So I wil go this route.
I leave this open for now for you to decide wether this can be fixed. I don't think I'm doing anything wrong or missed something. See my previous comment. Thank you
from u8g2.
Hi, @chauens, I got the same problem.
the default display config for sh1107_128x128 has a big x offset (check L519-520):
Lines 501 to 523 in 3e86287
you can try to use pimoroni's config or seeed's config :
Lines 600 to 622 in 3e86287
I don't use Arduino, but I think you can try to use U8G2_SH1107_PIMORONI_128X128_F_HW_I2C
instead of U8G2_SH1107_128X128_F_HW_I2C
for initialization
from u8g2.
Hi, thank you for the tip, that appears to be very helpful. I will try that.
Meanwhile I went back to using a 128x64 display because it actually is physically wider. I would need to use a smaller font to display the same number of characters per line on the 128x128 OLED... at least on the one I got, making it harder to read.
So it may take some time until I get around to do another test with 128x128 OLED.
from u8g2.
Related Issues (20)
- How to switch to the next page in u8g2 HOT 1
- SPI is Broken on ESP32 S2 mini. (Possibly S2 as well) HOT 1
- Can I use u8g2 with SSD1357 mono mode? HOT 3
- STM32F4 t6963 interfacing usage HOT 19
- Support for Monochrome Low-Power ST7302 Display HOT 1
- Using ERC240160 in ESP32S3 SPI HW mode does not work HOT 1
- Artefacts using U8G2_SSD1309_128X64_NONAME0_F_4W_SW_SPI OLED Display
- internal compiler error: in type_hash_canon, at tree.c:7158 HOT 1
- U8g2 font size and type HOT 3
- New Version UW ttyp0
- How to print accented characters with U8g2lib in character mode ? HOT 4
- Doubt in constructor for KS0108 Controller based 128X64 GLCD HOT 1
- The width of the text obtained using u8g2_GetStrWidth is very strange HOT 10
- UW TTYP0 Font Update
- UC1611s The first line displays a vertical coordinate of 8, which on an LCD display is equivalent to a downward translation of the screen coordinate by 8 HOT 2
- U8g2 library issue with Arduino nano RP2040 processor HOT 4
- Just wanted to add this improvement to help someone in the future. :) HOT 1
- Oled display - Bitmap not working oled SSD1107 IIC HOT 1
- Can I transmission content length max than 32 byte? HOT 3
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 u8g2.