!SfJCDXZbMHXkPovtKL:matrix.org

Rust Embedded Graphics

121 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-graphics15 Servers

Load older messages


SenderMessageTime
18 Jun 2021
@texitoi:matrix.orgTeXitoiwithout std and alloc, you might be able to use https://crates.io/crates/nom that will give you parsing functionnalities with more power than regex, and thus you can do some kind of regex with it10:56:19
@jamwaffles:matrix.orgjamwaffles
In reply to @texitoi:matrix.org

comment just above:

# The 'std' feature permits the regex crate to use the standard library. This
# is intended to support future use cases where the regex crate may be able
# to compile without std, and instead just rely on 'core' and 'alloc' (for
# example). Currently, this isn't supported, and removing the 'std' feature
# will prevent regex from compiling.
Oh my bad, shouldn't be recommending crates when I'm on a training call :D
10:56:50
@flovanmt:matrix.orgflovanmt> without std and alloc, you might be able to use https://crates.io/crates/nom that will give you parsing functionnalities with more power than regex, and thus you can do some kind of regex with it nice thank you :-)11:10:55
21 Jun 2021
@daja_2:matrix.orgAi Maiga (dajamante) left the room.09:31:13
@jacobrosenthal:matrix.orgjacobrosenthal We have all the sexy new from impls for pixels colors, i was hoping to be able to say greyscale a rgb rawimage or image, either wholesale rawimage.into() or via a pixel iterator image.into_iter().map(|p|Gray8::from(p))).collect() but I cant seem to figure a way, am I missing anything? 19:35:50
@jacobrosenthal:matrix.orgjacobrosenthal * We have all the sexy new from impls for pixels colors, i was hoping to be able to say greyscale a rgb rawimage or image, either wholesale rawimage.into() or via a pixel iterator image.into_iter().map(|p|Gray8::from(p))).collect() but I cant seem to figure a way, am I missing anything? 19:35:58
@jamwaffles:matrix.orgjamwaffles I think DrawTarget::color_converted should do what you want unless you really do want to collect() into a vec? 19:48:25
@jacobrosenthal:matrix.orgjacobrosenthalWell I dont 'want' a vec, but Im trying to iterate over pixels and do like edge detection or something. 19:54:03
@jamwaffles:matrix.orgjamwaffles Ah I see, yeah in that case you'll have to iterate as you suggested above. It's what color_converted does internally anyway 19:56:42
@jacobrosenthal:matrix.orgjacobrosenthalI cant seem to find a pub thing to iterate19:58:05
@jacobrosenthal:matrix.orgjacobrosenthal * I cant seem to find a pub thing to iterate20:00:39
@jamwaffles:matrix.orgjamwafflesAh... yes you're right20:01:44
@jamwaffles:matrix.orgjamwaffles rfuest: Did we miss this out in the 0.7 API dev or were image pixel iterators removed for a reason? 20:03:25
@jamwaffles:matrix.orgjamwaffles jacobrosenthal: I think this might be a regression/oversight, but we'll see what Ralf says 🙂 20:04:17
@jamwaffles:matrix.orgjamwaffles I've opened #609 to discuss 20:22:48
@jacobrosenthal:matrix.orgjacobrosenthalthanks. Hey did you ever open source those sprite animations you were tweeting about20:23:29
@jamwaffles:matrix.orgjamwafflesEhm I think I have them in a dead branch somewhere20:25:19
@jamwaffles:matrix.orgjamwafflesCode is a mess but lemme try and find it anyway20:25:25
@jamwaffles:matrix.orgjamwaffles here and here :) 20:26:46
@jamwaffles:matrix.orgjamwaffles
git clone https://github.com/embedded-graphics/examples.git
cd examples/eg-next
cargo run --example anim8 --release

# OR

cargo run --example choppa --release
20:27:27
@jacobrosenthal:matrix.orgjacobrosenthalslick. thanks20:32:25
22 Jun 2021
@jacobrosenthal:matrix.orgjacobrosenthal jamwaffles: another for you, https://github.com/jamwaffles/ssd1306/issues release when you get a chance 00:22:42
@jamwaffles:matrix.orgjamwaffles jacobrosenthal: 0.6.0 released. Note that you'll need to use embedded-graphics 0.7 to be compatible with this version. 08:53:36
@jacobrosenthal:matrix.orgjacobrosenthalI'm bumping all the bsps in Samx repo for eg 716:54:17
@jamwaffles:matrix.orgjamwafflesAwesome. Do those all use ssd1306 or are there other driver crates I need to update for you to get it done?18:17:24
@jacobrosenthal:matrix.orgjacobrosenthalinterestingly all the others were also updated already18:32:53
@jacobrosenthal:matrix.orgjacobrosenthalthe ili9341 and st7735-lcd 18:34:21
@jamwaffles:matrix.orgjamwafflesOh excellent, hopefully smooth(ish) sailing then18:40:31
@therealprof:matrix.orgtherealprof
In reply to @jacobrosenthal:matrix.org
the ili9341 and st7735-lcd
Uhm, not really all then? 😉
18:43:09
@jacobrosenthal:matrix.orgjacobrosenthalyeah those two were updated last few weeks18:51:54

There are no newer messages yet.


Back to Room List