Skip to content

Commit b700549

Browse files
committed
preparing for release 0.2.0
1 parent 5be8914 commit b700549

File tree

5 files changed

+44
-7
lines changed

5 files changed

+44
-7
lines changed

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
-
1111

12+
## [0.2.0] - 2022-04-23
13+
14+
### Changed
15+
16+
- not depending on alpha versions of embedded-graphics anymore.
17+
- updated hello example in README
18+
- added projects using push2_display section in README
19+
1220
## [1.0.0-alpha.3] - 2022-04-22
1321

1422
### Changed
@@ -58,7 +66,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5866
- Very basic hello example
5967
- Photo of hello example on the Ableton Push2 display
6068

61-
[unreleased]: https://github.com/mbracher/push2_display/compare/1.0.0-alpha.2...HEAD
69+
[unreleased]: https://github.com/mbracher/push2_display/compare/0.2.0...HEAD
70+
[0.2.0]: https://github.com/mbracher/push2_display/compare/1.0.0-alpha.3...0.2.0
71+
[1.0.0-alpha.3]: https://github.com/mbracher/push2_display/compare/1.0.0-alpha.2...1.0.0-alpha.3
6272
[1.0.0-alpha.2]: https://github.com/mbracher/push2_display/compare/1.0.0-alpha.1...1.0.0-alpha.2
6373
[1.0.0-alpha.1]: https://github.com/mbracher/push2_display/compare/0.1.1...1.0.0-alpha.1
6474
[0.1.1]: https://github.com/mbracher/push2_display/compare/0.1.0...0.1.1

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "push2_display"
3-
version = "1.0.0-alpha.3"
3+
version = "0.2.0"
44
authors = ["Marc Bracher"]
55
edition = "2018"
66
description="Ableton Push2 Embedded-graphics display driver"

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ Push2 is a USB composite device with a MIDI interface and a generic bulk data in
1212
## Examples
1313

1414
```rust
15+
use embedded_graphics::{
16+
mono_font::{ascii::FONT_10X20, MonoTextStyle},
17+
pixelcolor::{PixelColor, Bgr565},
18+
prelude::*,
19+
text::Text,
20+
};
21+
use push2_display::Push2Display;
22+
1523
let mut display = Push2Display::new()?;
24+
let text_style = MonoTextStyle::new(&FONT_10X20, Bgr565::WHITE);
1625

17-
Text::new("Hello!", Point::new(400, 70))
18-
.into_styled(TextStyle::new(Font6x8, Bgr565::BLUE))
26+
Text::new("Hello!", Point::new(400, 70), &text_style)
1927
.draw(&mut display)?;
2028

2129
display.flush()?;
@@ -35,6 +43,11 @@ cargo run --example hello
3543

3644
[Embedded graphics](https://github.com/embedded-graphics/embedded-graphics)
3745

46+
## Projects using push2_display
47+
- [push2_pong](https://github.com/mbracher/push2_pong): two player ping pong game on the Ableton Push2 midi controller
48+
49+
- [push2_soundboard](https://github.com/Dragonseel/push2_soundboard): play sounds and loops via pressing buttons on the Ableton Push2 midi controller
50+
3851
## License
3952

4053
Licensed under either of

examples/hello.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ use std::{error, thread, time};
1414

1515
fn main() -> Result<(), Box<dyn error::Error>> {
1616
let mut display = Push2Display::new()?;
17+
let text_style = MonoTextStyle::new(&FONT_10X20, Bgr565::WHITE);
1718

1819
let mut position = Point::new(0, 70);
1920
let mut step = 4;
2021
loop {
2122
display.clear(Bgr565::BLACK)?;
22-
let text_style = MonoTextStyle::new(&FONT_10X20, Bgr565::WHITE);
23+
2324
Rectangle::new(Point::zero(), display.size())
2425
.into_styled(PrimitiveStyle::with_stroke(Bgr565::WHITE, 1))
2526
.draw(&mut display)?;

src/lib.rs

+15-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77
//! # Examples
88
//!
99
//! ```rust
10+
//! use embedded_graphics::{
11+
//! mono_font::{ascii::FONT_10X20, MonoTextStyle},
12+
//! pixelcolor::{PixelColor, Bgr565},
13+
//! prelude::*,
14+
//! text::Text,
15+
//! };
16+
//! use push2_display::Push2Display;
17+
//!
1018
//! let mut display = Push2Display::new()?;
19+
//! let text_style = MonoTextStyle::new(&FONT_10X20, Bgr565::WHITE);
1120
//!
12-
//! Text::new("Hello!", Point::new(400, 70))
13-
//! .into_styled(TextStyle::new(Font6x8, Bgr565::BLUE))
21+
//! Text::new("Hello!", Point::new(400, 70), &text_style)
1422
//! .draw(&mut display)?;
1523
//!
1624
//! display.flush()?;
@@ -29,6 +37,11 @@
2937
//! [Ableton Push Interface](https://github.com/Ableton/push-interface)
3038
//!
3139
//! [Embedded graphics](https://github.com/embedded-graphics/embedded-graphics)
40+
//!
41+
//! # Projects using push2_display
42+
//! - [push2_pong](https://github.com/mbracher/push2_pong): two player ping pong game on the Ableton Push2 midi controller
43+
//!
44+
//! - [push2_soundboard](https://github.com/Dragonseel/push2_soundboard): play sounds and loops via pressing buttons on the Ableton Push2 midi controller
3245
3346
pub mod display;
3447
pub use display::*;

0 commit comments

Comments
 (0)