Skip to content

Commit 14a6026

Browse files
committed
keyboard: Use newly published is31fl3743a crate
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent e822d1d commit 14a6026

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

Cargo.lock

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ usbd-serial = "0.1.1"
4040
usbd-hid = "0.6.1"
4141
fugit = "0.3.7"
4242
# LED Matrix
43-
is31fl3741 = { git = "https://github.com/FrameworkComputer/is31fl3741-rs", branch = "is31fl3743a" }
43+
is31fl3741 = "0.3.0"
44+
is31fl3743a = "0.1.0"
4445
# B1 Display
4546
st7306 = { git = "https://github.com/FrameworkComputer/st7306-rs", branch = "update-deps" }
4647
embedded-graphics = "0.8"

keyboard/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ usbd-hid.workspace = true
3535
fugit.workspace = true
3636

3737
usbd-human-interface-device = "0.3.1"
38-
is31fl3741.workspace = true
38+
is31fl3743a.workspace = true
3939

4040
cfg-if = "1.0.0"
4141

keyboard/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ fn main() -> ! {
365365
&clocks.peripheral_clock,
366366
);
367367

368-
let mut matrix = LedMatrix::new(i2c, DVT2_CALC_PIXEL);
368+
let mut matrix = LedMatrix::new(i2c, |_, _| 0x00);
369369

370370
cfg_if::cfg_if! {
371371
if #[cfg(any(feature = "ansi", feature = "macropad"))] {

keyboard/src/rgb_matrix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use embedded_hal::blocking::delay::DelayMs;
66
use embedded_hal::blocking::i2c::Read;
77
use embedded_hal::blocking::i2c::Write;
88
#[allow(unused_imports)]
9-
use is31fl3741::{Error, IS31FL3743};
9+
use is31fl3743a::{Error, IS31FL3743};
1010

1111
pub const DVT2_CALC_PIXEL: fn(x: u8, y: u8) -> (u8, u8) = |x: u8, y: u8| -> (u8, u8) {
1212
// Generated by led-matrix.py
@@ -349,7 +349,7 @@ where
349349
self.device.address = address;
350350
}
351351

352-
pub fn new(i2c: I2C, calc_pixel: fn(x: u8, y: u8) -> (u8, u8)) -> LedMatrix<I2C> {
352+
pub fn new(i2c: I2C, calc_pixel: fn(x: u8, y: u8) -> u8) -> LedMatrix<I2C> {
353353
LedMatrix {
354354
device: IS31FL3743 {
355355
i2c,

0 commit comments

Comments
 (0)