!SfJCDXZbMHXkPovtKL:matrix.org

Rust Embedded Graphics

303 Members
Help and chat for embedded-graphics and the wider embedded Rust graphics ecosystem | https://github.com/embedded-graphics/embedded-graphics | https://crates.io/crates/embedded-graphics27 Servers

Load older messages


SenderMessageTime
24 Feb 2024
@niedzwiedzw:matrix.orgWojciech Niedźwiedźhttps://github.com/david-sawatzke/hub75-rs/pull/711:29:40
@niedzwiedzw:matrix.orgWojciech Niedźwiedźhttps://github.com/Niedzwiedzw/esp-reaper-status-bar/blob/master/src/status_bar_display.rs my code for drawing... the no led on the matrix llights up11:33:38
25 Feb 2024
@niedzwiedzw:matrix.orgWojciech Niedźwiedźsooo my question still stands... I have managed to run this demo https://www.waveshare.com/wiki/RGB-Matrix-P2-64x64#Working_With_ESP32 on my setup, which means that hardware is fine - it must be software problem. If someone is feeling like helping me I'd be forever grateful :D15:06:51
@niedzwiedzw:matrix.orgWojciech Niedźwiedź * sooo my question still stands... I have managed to run this demo https://www.waveshare.com/wiki/RGB-Matrix-P2-64x64#Working_With_ESP32 on my setup, which means that hardware is fine - it must be software problem. If someone is feeling like helping me I'd be forever grateful :D (I'm open sourcing (MIT) everything btw) 15:10:36
@niedzwiedzw:matrix.orgWojciech Niedźwiedź * https://github.com/Niedzwiedzw/esp-reaper-status-bar/blob/master/src/status_bar_display.rs my code for drawing... no led on the matrix llights up 15:11:29
26 Feb 2024
@rfuest:matrix.orgrfuest

I've never used that crate, but my guess is that you aren't calling the output method: https://docs.rs/hub75/0.1.1/hub75/struct.Hub75.html#method.output

15:12:47
@niedzwiedzw:matrix.orgWojciech Niedźwiedźomg xD thank you16:12:27
28 Feb 2024
@rursprung:matrix.orgRalph joined the room.18:01:08
1 Mar 2024
@avlec:matrix.orgavlec

Hey guys got a interesting problem. In the progress of updating my embassy_rp project to their latest git version using epd-waveshare for my display. And I had this bit of code that worked before but now doesn't cause the epd-waveshare has tightened up its API just lost for what to do to resolve this any help or guidance appreciated!

    let mut spi_d_cfg = embassy_rp::spi::Config::default();
    spi_d_cfg.frequency = 4000000;
    let mut spi_d = embassy_rp::spi::Spi::new_blocking_txonly(p.SPI1, p.PIN_10, p.PIN_11, spi_d_cfg);

    let busy_d = Input::new(p.PIN_13, Pull::None);
    let dc_d = Output::new(p.PIN_8, Level::Low);
    let rst_d = Output::new(p.PIN_12, Level::Low);
    let mut delay = Delay;
    let mut epd = EPD3in7::new(&mut spi_d, busy_d, dc_d, rst_d, &mut delay, None).unwrap();

The error is as follows

error[E0277]: the trait bound `embassy_rp::rp_pac::spi::Spi: embedded_hal::spi::SpiDevice` is not satisfied
   --> src/main.rs:140:32
    |
140 |     let mut epd = EPD3in7::new(&mut SPI1, busy_d, dc_d, rst_d, &mut delay, None).unwrap();
    |                   ------------ ^^^^^^^^^ the trait `embedded_hal::spi::SpiDevice` is not implemented for `embassy_rp::rp_pac::spi::Spi`
    |                   |
    |                   required by a bound introduced by this call
05:29:19
@avlec:matrix.orgavlec *

Hey guys got a interesting problem. In the progress of updating my embassy_rp project to their latest git version using epd-waveshare for my display. And I had this bit of code that worked before but now doesn't cause the epd-waveshare has tightened up its API just lost for what to do to resolve this any help or guidance appreciated!

    let p = embassy_rp::init(Default::default());
// ...
    let mut spi_d_cfg = embassy_rp::spi::Config::default();
    spi_d_cfg.frequency = 4000000;
    let mut spi_d = embassy_rp::spi::Spi::new_blocking_txonly(p.SPI1, p.PIN_10, p.PIN_11, spi_d_cfg);

    let busy_d = Input::new(p.PIN_13, Pull::None);
    let dc_d = Output::new(p.PIN_8, Level::Low);
    let rst_d = Output::new(p.PIN_12, Level::Low);
    let mut delay = Delay;
    let mut epd = EPD3in7::new(&mut spi_d, busy_d, dc_d, rst_d, &mut delay, None).unwrap();

The error is as follows

error[E0277]: the trait bound `embassy_rp::rp_pac::spi::Spi: embedded_hal::spi::SpiDevice` is not satisfied
   --> src/main.rs:140:32
    |
140 |     let mut epd = EPD3in7::new(&mut SPI1, busy_d, dc_d, rst_d, &mut delay, None).unwrap();
    |                   ------------ ^^^^^^^^^ the trait `embedded_hal::spi::SpiDevice` is not implemented for `embassy_rp::rp_pac::spi::Spi`
    |                   |
    |                   required by a bound introduced by this call
05:30:08
@grantm11235:matrix.orgGrantM11235 avlec: You need to wrap the spi bus with something like embedded_hal_bus::spi::ExclusiveDevice. This explains the difference between an SpiBus and an SpiDevice https://docs.rs/embedded-hal/latest/embedded_hal/spi/index.html 20:35:26
@fdem234:matrix.orgfdem234problem with embassy build. I was following Hanno Braun's tutorial and after git clone of embassy the article had "git switch -d c3ef98a" That led to all my trouble21:20:08
2 Mar 2024
@avlec:matrix.orgavlec
In reply to @grantm11235:matrix.org
avlec: You need to wrap the spi bus with something like embedded_hal_bus::spi::ExclusiveDevice. This explains the difference between an SpiBus and an SpiDevice https://docs.rs/embedded-hal/latest/embedded_hal/spi/index.html
That seems to have been the gap in my understanding thank you! What changes when you step away from a project for a few months...
04:06:26
@niedzwiedzw:matrix.orgWojciech Niedźwiedź

hey, I can see that my raspberry pi pico (through embassy_rp is not fast enough to drive hub75 protocol and it flickers A LOT. it's off most of the time :D. So my assumption is that it uses too optimistic of a color depth, I was thinking about patching it to support less ambitious color space.
https://github.com/david-sawatzke/hub75-rs/blob/ba1eaa6de065909bba5776557e7986229df54863/src/lib.rs#L236

the problem is that despite using pure colors only - red green and blue, below threshold of 6 for brightness_bits it shows no colors at all.

could someone with more expertise help me out with this?

14:34:55
@niedzwiedzw:matrix.orgWojciech Niedźwiedźhttps://github.com/Niedzwiedzw/hub75-rs/commit/e9fdc886128cc7c44928b9d58f107210e0683095?diff=split&w=1 so for some reason this doesn't work... 15:38:02
@niedzwiedzw:matrix.orgWojciech Niedźwiedź * https://github.com/Niedzwiedzw/hub75-rs/commit/e9fdc886128cc7c44928b9d58f107210e0683095?diff=split&w=1 so for some reason this doesn't work... the screen is completely dark, nothing is displayed15:38:43
@niedzwiedzw:matrix.orgWojciech Niedźwiedź * https://github.com/Niedzwiedzw/hub75-rs/commit/e9fdc886128cc7c44928b9d58f107210e0683095?diff=split&w=1 so for some reason this doesn't work... the screen is completely dark, nothing is displayed...15:40:13
@zer0-x:kde.org@zer0-x:kde.org left the room.18:46:09
5 Mar 2024
@noahpn:matrix.orgNoah set a profile picture.15:12:14
10 Mar 2024
@mineral_steins:matrix.orgMineralSteins joined the room.15:24:54
11 Mar 2024
@bemyak:matrix.orgbemyak joined the room.13:05:56
@bemyak:matrix.orgbemyak left the room.13:06:46
@bemyak:matrix.orgbemyak joined the room.13:07:00
22 Mar 2024
@almindor:matrix.orgalmindorRedacted or Malformed Event17:30:12
26 Mar 2024
@jamwaffles:matrix.orgjamwaffles

Would anyone like to take ownership of these?

  • https://github.com/jamwaffles/ssd1306/issues/209
  • https://github.com/jamwaffles/ssd1331/issues/15
  • https://github.com/jamwaffles/sh1106/issues/37

Otherwise I'll move them to https://github.com/rust-embedded-community in the next few days

19:53:19
@bugadani:matrix.orgdanielbI guess I could take over 130619:56:26
@bugadani:matrix.orgdanielbnot sure if I should, though 😅19:57:15
@jamwaffles:matrix.orgjamwafflesMight be better as part of rust-embedded-community?19:57:57
@jamwaffles:matrix.orgjamwafflesI dunno19:57:59
@bugadani:matrix.orgdanielbprobably19:58:27

Show newer messages


Back to Room ListRoom Version: 5