Skip to content

Use newly published st7306 library #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
runs-on: [ubuntu-latest] #${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.PRIVKEY_ST7306 }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down Expand Up @@ -69,10 +65,6 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.PRIVKEY_ST7306 }}
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.PRIVKEY_ST7306 }}

- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -66,11 +61,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.PRIVKEY_ST7306 }}

- name: Setup Rust toolchain
run: rustup show

Expand All @@ -92,11 +82,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.PRIVKEY_ST7306 }}

- name: Install dependencies
run: |
sudo apt-get update
Expand Down
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion b1display/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
fugit = "0.3.6"

st7306-lcd = { git = "ssh://[email protected]/FrameworkComputer/st7306.git" }
st7306 = "0.8.2"
embedded-graphics = "0.7"
tinybmp = "0.4.0"

Expand Down
2 changes: 1 addition & 1 deletion b1display/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use embedded_graphics::pixelcolor::Rgb565;
use embedded_graphics::prelude::*;
use embedded_graphics::primitives::*;
use embedded_hal::blocking::spi;
use st7306_lcd::{FpsConfig, HpmFps, LpmFps, PowerMode, ST7306};
use st7306::{FpsConfig, HpmFps, LpmFps, PowerMode, ST7306};

// Provide an alias for our BSP so we can switch targets quickly.
// Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.
Expand Down
4 changes: 2 additions & 2 deletions fl16-inputmodules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ num-traits = { version = "0.2", default-features = false }
is31fl3741 = { git = "https://github.com/JohnAZoidberg/is31fl3741", branch = "all-at-once", optional = true }

# B1 Display
st7306-lcd = { git = "ssh://[email protected]/FrameworkComputer/st7306.git", optional = true }
st7306 = { version = "0.8.2", optional = true }
embedded-graphics = { version = "0.7", optional = true }
tinybmp = { version = "0.4.0", optional = true }

Expand All @@ -44,5 +44,5 @@ ws2812-pio = { version = "0.5.0", optional = true }
[features]
default = []
ledmatrix = [ "is31fl3741" ]
b1display = [ "st7306-lcd", "embedded-graphics", "tinybmp" ]
b1display = [ "st7306", "embedded-graphics", "tinybmp" ]
c1minimal = ["smart-leds", "ws2812-pio" ]
2 changes: 1 addition & 1 deletion fl16-inputmodules/src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use embedded_hal::digital::v2::OutputPin;
#[cfg(feature = "b1display")]
use heapless::String;
#[cfg(feature = "b1display")]
use st7306_lcd::ST7306;
use st7306::ST7306;

#[cfg(feature = "ledmatrix")]
use crate::games::pong;
Expand Down