Skip to content

Commit

Permalink
Remove SPIInterfaceNoCS from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 11, 2024
1 parent dc5349a commit 69628fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
target_steps: &target_steps
docker:
- image: cimg/rust:1.66.0
- image: cimg/rust:1.75.0
steps:
- checkout
- restore_cache:
Expand Down
2 changes: 1 addition & 1 deletion examples/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn main() -> ! {
clocks,
);

let interface = display_interface_spi::SPIInterfaceNoCS::new(spi, dc);
let interface = display_interface_spi::SPIInterface::new(spi, dc);
let mut display = Ssd1306::new(interface, DisplaySize128x64, DisplayRotation::Rotate0)
.into_buffered_graphics_mode();

Expand Down
2 changes: 1 addition & 1 deletion examples/pixelsquare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn main() -> ! {
clocks,
);

let interface = display_interface_spi::SPIInterfaceNoCS::new(spi, dc);
let interface = display_interface_spi::SPIInterface::new(spi, dc);
let mut display = Ssd1306::new(interface, DisplaySize128x64, DisplayRotation::Rotate0)
.into_buffered_graphics_mode();

Expand Down
6 changes: 3 additions & 3 deletions examples/rtic_brightness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#[rtic::app(device = stm32f1xx_hal::pac, peripherals = true, dispatchers = [EXTI0])]
mod app {
use display_interface_spi::SPIInterfaceNoCS;
use display_interface_spi::SPIInterface;
use embedded_graphics::{
geometry::Point,
image::Image,
Expand All @@ -28,7 +28,7 @@ mod app {
use tinybmp::Bmp;

type Display = Ssd1306<
SPIInterfaceNoCS<
SPIInterface<
spi::Spi<
SPI1,
spi::Spi1NoRemap,
Expand Down Expand Up @@ -100,7 +100,7 @@ mod app {
clocks,
);

let interface = display_interface_spi::SPIInterfaceNoCS::new(spi, dc);
let interface = SPIInterface::new(spi, dc);
let mut display = Ssd1306::new(interface, DisplaySize128x64, DisplayRotation::Rotate180)
.into_buffered_graphics_mode();

Expand Down
6 changes: 3 additions & 3 deletions examples/rtic_dvd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#[rtic::app(device = stm32f1xx_hal::pac, peripherals = true, dispatchers = [EXTI0])]
mod app {
use display_interface_spi::SPIInterfaceNoCS;
use display_interface_spi::SPIInterface;
use embedded_graphics::{
geometry::Point,
image::Image,
Expand All @@ -29,7 +29,7 @@ mod app {
use tinybmp::Bmp;

type Display = Ssd1306<
SPIInterfaceNoCS<
SPIInterface<
spi::Spi<
SPI1,
spi::Spi1NoRemap,
Expand Down Expand Up @@ -100,7 +100,7 @@ mod app {
clocks,
);

let interface = display_interface_spi::SPIInterfaceNoCS::new(spi, dc);
let interface = SPIInterface::new(spi, dc);
let mut display = Ssd1306::new(interface, DisplaySize128x64, DisplayRotation::Rotate180)
.into_buffered_graphics_mode();

Expand Down

0 comments on commit 69628fa

Please # to comment.