Coder Social home page Coder Social logo

Comments (4)

blaa avatar blaa commented on July 17, 2024 1

Try SH1106 library. SSD1306 ALMOST works ok with screens using sh1106, but doesn't clear them ok, and in the terminal mode the text is shifted a bit (and possibly many other small differences).

Your screen on photo looks exactly like mine - sh1106. https://docs.rs/sh1106/latest/sh1106/#

from ssd1306.

jamwaffles avatar jamwaffles commented on July 17, 2024

115200 is quite strange for I2C. Can you try 100_000 (standard I2C rate I think) or maybe 400_000?

You could also try adding a clear/flush just after init, e.g.

display.init().unwrap();
display.clear().unwrap();
display.flush().unwrap();

I've anecdotally had this fix the static issue for me in the past, but I'm still unsure of its root cause.

If possible, try a different SSD1306 module to check if it's a hardware fault. Some of mine just seem to die sometimes.

from ssd1306.

papyDoctor avatar papyDoctor commented on July 17, 2024

I've exactly the same problem:
Version of ssd1306 in use (if applicable): [0.7.1]
MCU/other hardware in use: RPPico
Display resolution and interface: [I2C], [128x64]

Replacing this crate by the SH1106 leads to the same result:

IMG_20230224_115643

from ssd1306.

papyDoctor avatar papyDoctor commented on July 17, 2024

Ok, my bad. That was a power-on bad reset.
That was subtle because the device was partially functioning (DisplayOn/Off, Normal/Inverse, Contrast,...) but the commands related to the embedded display SRAM no. Then I presume the SRAM needs a well formed reset.
A lot of time lost for this :(

from ssd1306.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.