mirror of
https://github.com/Feliix42/ssd1675.git
synced 2024-11-24 11:46:30 +00:00
Fix some warnings
This commit is contained in:
parent
0b65948e5a
commit
a88264920e
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,6 @@ use hal;
|
|||
// Section 15.2 of the HINK-E0213A07 data sheet says to hold for 10ms
|
||||
const RESET_DELAY_MS: u8 = 10;
|
||||
|
||||
const MAX_SPI_SPEED_HZ: u32 = 20_000_000;
|
||||
|
||||
/// Trait implemented by displays to provide implemenation of core functionality.
|
||||
pub trait DisplayInterface {
|
||||
type Error;
|
||||
|
@ -80,6 +78,8 @@ pub trait DisplayInterface {
|
|||
///
|
||||
/// // Build the interface from the pins and SPI device
|
||||
/// let controller = ssd1675::Interface::new(spi, cs, busy, dc, reset);
|
||||
|
||||
#[allow(dead_code)] // Prevent warning about CS being unused
|
||||
pub struct Interface<SPI, CS, BUSY, DC, RESET> {
|
||||
/// SPI interface
|
||||
spi: SPI,
|
||||
|
|
Loading…
Reference in a new issue