!SfJCDXZbMHXkPovtKL:matrix.org

Rust Embedded Graphics

101 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-graphics12 Servers

Load older messages


SenderMessageTime
24 Feb 2021
@jaxter184:matrix.orgjaxter184
In reply to @jacobrosenthal:matrix.org
Im guessing everyone here already reads the reddit.com website, but interesting anyway https://crates.io/crates/stroke
neato, they should add a no_std tag
19:44:56
27 Feb 2021
@joeschneider-d5:matrix.orgJoe Schneider joined the room.16:01:57
@bugadani:matrix.orgbugadaniDownload TextBox demonstration 2021-02-27 21-05-19.mp420:09:16
@bugadani:matrix.orgbugadaniHot or not? :)20:09:26
@jamwaffles:matrix.orgjamwafflesHawt 100%20:12:57
@bugadani:matrix.orgbugadaniTechnically, second textbox isn't a "column", but a completely independent textbox displaying the remaining text, so I'm hoping this will be quite flexible. Is this the first terrible misuse of https://github.com/embedded-graphics/embedded-graphics/pull/552 ? :)20:14:27
@jamwaffles:matrix.orgjamwafflesMore like the first validation of that feature, no? :P20:19:00
@bugadani:matrix.orgbugadaniOh I thought that PR contained an example. Well then, the answer is a definite maybe :)20:20:16
28 Feb 2021
@jamesmunns:matrix.orgjamesmunnsSomehow, epaper photographs better than it looks in person :p00:59:54
@therealprof:matrix.orgtherealprofHehe.01:00:18
@jamesmunns:matrix.orgjamesmunnsBut! I did get the adafruit 2.13" display working, now I need to wire it up to e-g (tomorrow)01:00:40
@jamesmunns:matrix.orgjamesmunnsI wish it looked this photogenic in person: https://twitter.com/bitshiftmask/status/136582835490195046801:00:50
@jamesmunns:matrix.orgjamesmunns It doesn't look bad, just a little more washed-out in person, vs in the photo where the red is really "bold" 01:01:31
@therealprof:matrix.orgtherealprofYes, the color ones really look washed out. Have a couple of them here, too. There's a few reasons why they are rare and the colors very odd (red, yellow, black and dirty white).01:13:43
@therealprof:matrix.orgtherealprofI've seen really good ones but they're made from unobtainium.01:14:21
@jamesmunns:matrix.orgjamesmunnsI wish the hybrid transflective ones like Pixel Qi had made it to more success01:31:52
@jamesmunns:matrix.orgjamesmunnsAt least in any real quantities01:32:17
3 Mar 2021
@jamwaffles:matrix.orgjamwaffles I just found embedded-plots. I don't have a use for it right now but it looks awesome! 23:51:37
@jamwaffles:matrix.orgjamwafflesimage.png
Download image.png
23:51:39
4 Mar 2021
@bugadani:matrix.orgbugadaniall right, anyone would please make a crates.io download statistics demo with this one? :)10:19:02
@jamwaffles:matrix.orgjamwafflesI’ve been meaning to get something like that going for a while, just waiting on esp-01 support so I can call the api over WiFi!10:32:13
5 Mar 2021
@flovanmt:matrix.orgflovanmt joined the room.19:31:04
6 Mar 2021
@reecestevens24:matrix.orgreecestevens24 joined the room.05:20:59
@reecestevens24:matrix.orgreecestevens24

Hi everyone! Reece here-- I was a brief contributor to e-g about a year ago or so. Just now getting on the Matrix train.

But! I did get the adafruit 2.13" display working, now I need to wire it up to e-g (tomorrow)

jamesmunns not sure if you're talking about the RA8875 display driver chip, but I have been working on an e-g compatible driver for this for some time. It's not really in a publishable state since I've mostly been using it internally, but maybe some bits and pieces of it could be useful for you: https://github.com/ReeceStevens/ra8875 .

06:08:20
@reecestevens24:matrix.orgreecestevens24I actually checked in here because I was curious if any development had been made on text rendering recently. Seems like y'all are actually quite busy on that front :) Excited to see the changes coming for the 0.7.0 release. The biggest limitation I'm facing right now is that text rendering is extremely slow on the RA8875 since it's drawing each letter pixel-by-pixel, so exposing a way to leverage the hardware accelerated font rendering on the chip would be awesome.06:12:08
@reecestevens24:matrix.orgreecestevens24

I am currently working on a project that has a hardware display target (the RA8875) and an alternative target of the e-g simulator display. I'm writing most of the application logic in a library that is either implemented in hardware mode or in simulator mode, so e-g is a key part in abstracting away which display I'm using so that the library works as expected across both targets.

Question for y'all: How do you manage performant font rendering for multiple targets like this? While the font rendering in the simulator is fine, rendering on the RA8875 is painfully slow (on the order of 1s to render text) since it draws each individual pixel. I want to override this and let it use the hardware accelerated methods, but I don't see any way to do so even with the changes coming up in 0.7.0. It seems like the current approach would be to create a custom TextRenderer, but since a TextRenderer is separate from a DrawTarget, it doesn't have access to any device-specific methods and can only see the DrawTarget trait interface. Therefore I don't see how I could use it to take advantage of better font rendering methods for displays that offer it, while falling back to the iterator approach for other DrawTargets.

Is there a way y'all would suggest approaching this problem? I might be missing some of the intricacies of the text rendering logic, so apologies if there's an obvious solution to this I'm not seeing.

07:29:27
@bugadani:matrix.orgbugadaniWell, font rendering speed isn't an issue for me as I'm using a 128x64px monochrome display 😂 I'm assuming you're measuring that 1s on an optimized application? TextRenderer right now is a developer-facing API for external crates like embedded-text so that they can be font-agnostic, it's not meant for display drivers AFAIK.09:41:26
@bugadani:matrix.orgbugadaniOh I see that chip has a font engine... It would be fun if we could support those, indeed09:51:12
@jamesmunns:matrix.orgjamesmunns
In reply to @reecestevens24:matrix.org

Hi everyone! Reece here-- I was a brief contributor to e-g about a year ago or so. Just now getting on the Matrix train.

But! I did get the adafruit 2.13" display working, now I need to wire it up to e-g (tomorrow)

jamesmunns not sure if you're talking about the RA8875 display driver chip, but I have been working on an e-g compatible driver for this for some time. It's not really in a publishable state since I've mostly been using it internally, but maybe some bits and pieces of it could be useful for you: https://github.com/ReeceStevens/ra8875 .

The one I'm using has a IL0373 for a controller
13:11:11
@jamesmunns:matrix.orgjamesmunns It looks like the newer, higher-res version of the board (that I don't have) uses the SSD1680 as the display driver. 13:11:42

There are no newer messages yet.


Back to Room List