Coder Social home page Coder Social logo

ssd1306 with rtic 1.0.0 about ssd1306 HOT 7 OPEN

pdgilbert avatar pdgilbert commented on August 16, 2024
ssd1306 with rtic 1.0.0

from ssd1306.

Comments (7)

afternoon avatar afternoon commented on August 16, 2024 1

I'm trying to do something similar to the above code. The problem seems to come from passing the embedded_graphics MonoFontStyle value as a resource, which isn't an issue with this crate.

A workaround is to build the text style in the task itself.

from ssd1306.

jamwaffles avatar jamwaffles commented on August 16, 2024

Thanks for the detailed issue! I don't have much spare time at the moment but I'll look at reproducing your issue when I can :)

from ssd1306.

pdgilbert avatar pdgilbert commented on August 16, 2024

Thanks @afternoon for pointing out this workaround. I have now re-enabled ssd1306 code in several examples and all are compiling. I'll get around to testing on hardware sometime soon.

from ssd1306.

snorkman88 avatar snorkman88 commented on August 16, 2024

@pdgilbert I am also using the Blackpill board which is based on that STM32F411CEU6 and RTIC v2.0.
Have you managed to make it work? Can you share a sample code?

from ssd1306.

pdgilbert avatar pdgilbert commented on August 16, 2024

I have made this work with RTIC v1 (cortex-m-rtic = ">=1.0"). I have several examples at https://github.com/pdgilbert/rust-integration-testing. See directory examples/. I have just started playing with RTIC v2 but am running into problems compiling rtic with embedded-hal 1.0.0-rc.2. See rtic-rs/rtic#862.

from ssd1306.

pdgilbert avatar pdgilbert commented on August 16, 2024

I have now compiled examples using RTIC v2 and stm32f4xx_hal with both embedded-hal 1.0.0-rc2 and a fork using rc3. These are in the eh-1-rc2 and eh-1-rc3 branches at https://github.com/pdgilbert/rust-integration-testing. (See the CI testing in Actions.) I have also run tested one example on hardware. This all uses the stm32f4xx_hal dual support for embedded-hal 1.0.0 as well as an older version. That means user code and rtic can use embedded-hal 1.0.0 while ssd1306 uses embedded-hal 0.2.7. The tree for this is pretty ugly. I think it must be considered a transition solution and I look forward to an ssd1306 crate based on embedded-hal 1.0.0 .

from ssd1306.

pdgilbert avatar pdgilbert commented on August 16, 2024

It seems likely that rtic v1.x.x will be abandoned with the release of embedded-hal 1.0.0. Users really should convert to rtic v2. (This needs to be emphasized given this old issue title "ssd1306 with rtic 1.0.0".)

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.