Any project in rust you want to chat about.

  • HerrBratani@feddit.de
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    An e-ink info display which displays the weather and my nextcloud calendars and tasks. So Rust Backend which pulls the data and displays a static HTML page, which will be pulled by the esp32 board. First project with rust

    • sokkies@lemmyrs.orgOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Are you also programmibg the esp using rust? Ive only gotten pretty basic stuff to run on embedded systems with rust despite really wishing that I could do more

      • Vorpal@lemmyrs.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I have done some small experiments (not much beyond a blinking light at this point) and I feel that the main issue right now for a beginner is that the documentation isn’t there yet. By far.

        Also I have read that many of the crates that use the same bus don’t play well with each other (e.g. two devices on the same i2c bus) even though that is what embedded-hal is supposed to be all about. Many early crates are also abandoned apparently, further compounding this problem. I don’t have enough personal experience though to tell if this is true.

        • sokkies@lemmyrs.orgOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Yeah finding crates has also been my issue. Ive done HAL on a raspberry pi and it has been fairly painless, but Im still strugggling to get my head around no_std convensions on bare metal chips… Also last I checked I couldnt figure out more advanced stuff like connectivity where I think Rust will really shine

      • HerrBratani@feddit.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Not there yet. Just started with the Backend. But i read about Rust on embedded devices. I need to do some more research, but if its a realistic Option, i will try to

        • YerbaYerba@lemmy.one
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I recently did a similar project. I have an old Chumby One device. I wrote a simple app that renders the time and date and outdoor temp and humidity. It receives the weather data over mqtt from rtl_433 running on an old wireless router with a USB sdr dongle.

          It writes the image directly to the framebuffer /dev/fb0

          I cross compiled for armv5te-unknown-linux-musleabi and it works great. Hard to get much running on 64mb of ram these days.

          I hope to get the source up on GitHub when I get some time.