Browse Source

Prepare release

- fix cargo fmt error
- rename forgotten stuff
embedded-hal-1.0
Chris 7 years ago
parent
commit
b9395b5eff
  1. 10
      Cargo.toml
  2. 2
      README.md
  3. 2
      examples/embedded_linux_epd4in2/Cargo.toml
  4. 2
      src/epd1in54/mod.rs
  5. 4
      src/epd2in9/mod.rs

10
Cargo.toml

@ -1,12 +1,12 @@
[package] [package]
authors = ["Christoph Groß <christoph-gross@mailbox.org>"] authors = ["Christoph Groß <caemor@mailbox.org>"]
categories = ["embedded", "hardware-support", "no-std"] categories = ["embedded", "hardware-support", "no-std"]
description = "An embedded-hal based driver for ePaper displays from Waveshare" description = "An embedded-hal based driver for ePaper displays from Waveshare"
documentation = "https://docs.rs/epd_waveshare" documentation = "https://docs.rs/epd-waveshare"
homepage = "https://github.com/Caemor/epd_waveshare" homepage = "https://github.com/caemor/epd-waveshare"
keywords = ["ePaper", "Display", "epd"] keywords = ["ePaper", "Display", "epd"]
license = "ISC" license = "ISC"
name = "epd_waveshare" name = "epd-waveshare"
readme = "README.md" readme = "README.md"
repository = "https://github.com/Caemor/epd_waveshare.git" repository = "https://github.com/Caemor/epd_waveshare.git"
version = "0.2.0" version = "0.2.0"
@ -14,7 +14,7 @@ version = "0.2.0"
[badges] [badges]
# Travis CI: `repository` in format "<user>/<project>" is required. # Travis CI: `repository` in format "<user>/<project>" is required.
# `branch` is optional; default is `master` # `branch` is optional; default is `master`
travis-ci = { repository = "Caemor/epd_waveshare" } travis-ci = { repository = "caemor/epd-waveshare" }
[features] [features]

2
README.md

@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/Caemor/eink-waveshare-rs.svg?branch=master)](https://travis-ci.com/Caemor/eink-waveshare-rs) [![Build Status](https://travis-ci.com/caemor/epd-waveshare.svg?branch=master)](https://travis-ci.com/caemor/epd-waveshare)
This library contains a driver for E-Paper Modules from Waveshare. This library contains a driver for E-Paper Modules from Waveshare.

2
examples/embedded_linux_epd4in2/Cargo.toml

@ -6,7 +6,7 @@ authors = ["Christoph Groß <christoph-gross@mailbox.org>"]
[dependencies] [dependencies]
## The Only difference between this one and the one without default features sizewise seems to be a different .d-file Size (dependencies-file) ## The Only difference between this one and the one without default features sizewise seems to be a different .d-file Size (dependencies-file)
#eink_waveshare_rs = { path = "../../"} #epd_waveshare = { path = "../../"}
epd_waveshare = { path = "../../", default-features = false, features = ["epd4in2", "graphics"]} epd_waveshare = { path = "../../", default-features = false, features = ["epd4in2", "graphics"]}
linux-embedded-hal = "0.2.1" linux-embedded-hal = "0.2.1"

2
src/epd1in54/mod.rs

@ -3,7 +3,7 @@
//! # Example for the 1.54 in E-Ink Display //! # Example for the 1.54 in E-Ink Display
//! //!
//! ```ignore //! ```ignore
//! use eink_waveshare_rs::{ //! use epd_waveshare::{
//! epd1in54::{EPD1in54, Buffer1in54}, //! epd1in54::{EPD1in54, Buffer1in54},
//! graphics::{Display, DisplayRotation}, //! graphics::{Display, DisplayRotation},
//! prelude::*, //! prelude::*,

4
src/epd2in9/mod.rs

@ -5,7 +5,7 @@
//! # Example for the 2.9 in E-Ink Display //! # Example for the 2.9 in E-Ink Display
//! //!
//! ```ignore //! ```ignore
//! use eink_waveshare_rs::{ //! use epd_waveshare::{
//! epd2in9::{EPD2in9, Buffer2in9}, //! epd2in9::{EPD2in9, Buffer2in9},
//! graphics::{Display, DisplayRotation}, //! graphics::{Display, DisplayRotation},
//! prelude::*, //! prelude::*,
@ -221,7 +221,7 @@ where
// clear the ram with the background color // clear the ram with the background color
let color = self.background_color.get_byte_value(); let color = self.background_color.get_byte_value();
self.interface.cmd(spi, Command::WRITE_RAM)?; self.interface.cmd(spi, Command::WRITE_RAM)?;
self.interface.data_x_times(spi, color, WIDTH / 8 * HEIGHT) self.interface.data_x_times(spi, color, WIDTH / 8 * HEIGHT)
} }

Loading…
Cancel
Save