push2_display

Crate API

This Rust library implements the Embedded-graphics-core DrawTarget trait, making it easy to draw 2D graphics primitives on the Push2 display.

Ableton Push2 is a MIDI instrument with a 960x160 RGB LCD display. Push2 is a USB composite device with a MIDI interface and a generic bulk data interface used to drive the display.

Examples

```rust use embeddedgraphics::{ monofont::{ascii::FONT10X20, MonoTextStyle}, pixelcolor::{PixelColor, Bgr565}, prelude::*, text::Text, }; use push2display::Push2Display;

let mut display = Push2Display::new()?; let textstyle = MonoTextStyle::new(&FONT10X20, Bgr565::WHITE);

Text::new("Hello!", Point::new(400, 70), &text_style) .draw(&mut display)?;

display.flush()?; ```

```bash git clone https://github.com/mbracher/push2display cd push2display

cargo run --example hello ```

Photo of hello example on Push2 device

References

Ableton Push Interface

Embedded graphics

Projects using push2_display

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.