Skip to content

Commit 70529b5

Browse files
Merge pull request #25 from FrameworkComputer/lotus-name
2 parents 7f42d85 + b891a82 commit 70529b5

30 files changed

+103
-103
lines changed

.github/workflows/firmware.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Upload Linux tool
5757
uses: actions/upload-artifact@v3
5858
with:
59-
name: lotus_inputmodule_fw
59+
name: inputmodule_fw
6060
path: |
6161
b1display.uf2
6262
c1minimal.uf2

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ members = [
88
"b1display",
99
"c1minimal",
1010
"ledmatrix",
11-
"lotus-inputmodules",
11+
"fl16-inputmodules",
1212
"inputmodule-control"
1313
]
1414
# Don't build all of them by default.
15-
# Because that'll lead to all features enabled in `lotus-inputmodules` and it
15+
# Because that'll lead to all features enabled in `fl16-inputmodules` and it
1616
# doesn't currently support building with all features enabled at the same
1717
# time.
1818
# Can't add `inputmodule-control` because it must be built with the host system
1919
# target. But we set the default target to thumbv6m-none-eabi
2020
default-members = [
21-
"lotus-inputmodules",
21+
"fl16-inputmodules",
2222
]
2323

2424
#[patch.'https://github.com/rp-rs/rp-hal.git']

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Framework Laptop 16 Input Module Firmware
1+
# Framework Laptop 16 - Input Module Firmware/Software
22

33
This repository contains both the firmware for the Framework Laptop 16 input modules,
44
as well as the tool to control them.
@@ -48,12 +48,12 @@ Common commands:
4848
VID 0x32AC
4949
PID 0x0020
5050
SN FRAKDEAM0020110001
51-
Product Lotus_LED_Matrix
51+
Product LED_Matrix
5252
/dev/ttyACM1
5353
VID 0x32AC
5454
PID 0x0021
5555
SN FRAKDEAM0000000000
56-
Product Lotus_B1_Display
56+
Product B1_Display
5757
```
5858

5959
###### Apply command to single device
@@ -169,7 +169,7 @@ On Linux:
169169

170170
```sh
171171
> lsusb -d 32ac: -v 2> /dev/null | grep -P 'ID 32ac|bcdDevice'
172-
Bus 003 Device 078: ID 32ac:0021 Framework Lotus B1 Display
172+
Bus 003 Device 078: ID 32ac:0021 Framework Laptop 16 B1 Display
173173
bcdDevice 0.10
174174
```
175175

b1display/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmt-rtt = "0.4"
1414
#panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
1616

17-
# Not using a BSP, we've got a Lotus BSP's locally in this crate
17+
# Not using an external BSP crate, we've got the Framework Laptop 16 BSPs locally in this crate
1818
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
1919
rp2040-boot2 = "0.2"
2020

@@ -30,6 +30,6 @@ st7306-lcd = { git = "ssh://[email protected]/FrameworkComputer/st7306.git" }
3030
embedded-graphics = "0.7"
3131
tinybmp = "0.4.0"
3232

33-
[dependencies.lotus-inputmodules]
34-
path = "../lotus-inputmodules"
33+
[dependencies.fl16-inputmodules]
34+
path = "../fl16-inputmodules"
3535
features = [ "b1display" ]

b1display/src/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Lotus LED Matrix Module
1+
//! LED Matrix Module
22
#![no_std]
33
#![no_main]
44
#![allow(clippy::needless_range_loop)]
@@ -22,7 +22,7 @@ use st7306_lcd::{FpsConfig, HpmFps, LpmFps, PowerMode, ST7306};
2222

2323
// Provide an alias for our BSP so we can switch targets quickly.
2424
// Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.
25-
use lotus_inputmodules::lotus_lcd_hal as bsp;
25+
use fl16_inputmodules::lcd_hal as bsp;
2626
//use rp_pico as bsp;
2727
// use sparkfun_pro_micro_rp2040 as bsp;
2828

@@ -47,12 +47,12 @@ use core::fmt::Debug;
4747
//use core::fmt::Write;
4848
//use heapless::String;
4949

50-
use lotus_inputmodules::control::*;
51-
use lotus_inputmodules::graphics::*;
52-
use lotus_inputmodules::serialnum::{device_release, get_serialnum};
50+
use fl16_inputmodules::control::*;
51+
use fl16_inputmodules::graphics::*;
52+
use fl16_inputmodules::serialnum::{device_release, get_serialnum};
5353

5454
// FRA - Framwork
55-
// KDE - Lotus C2 LED Matrix
55+
// KDE - C1 LED Matrix
5656
// AM - Atemitech
5757
// 00 - Default Configuration
5858
// 00000000 - Device Identifier
@@ -120,8 +120,8 @@ fn main() -> ! {
120120
};
121121

122122
let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x32ac, 0x0021))
123-
.manufacturer("Framework")
124-
.product("Lotus B1 Display")
123+
.manufacturer("Framework Computer Inc")
124+
.product("B1 Display")
125125
.serial_number(serialnum)
126126
.max_power(500) // TODO: Check how much
127127
.device_release(device_release()) // TODO: Assign dynamically based on crate version

c1minimal/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmt-rtt = "0.4"
1414
#panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
1616

17-
# Not using a BSP, we've got a Lotus BSP's locally in this crate
17+
# Not using an external BSP, we've got the Framework Laptop BSPs locally in this crate
1818
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
1919
rp2040-boot2 = "0.2"
2020

@@ -29,6 +29,6 @@ fugit = "0.3.6"
2929
smart-leds = "0.3.0"
3030
ws2812-pio = "0.5.0"
3131

32-
[dependencies.lotus-inputmodules]
33-
path = "../lotus-inputmodules"
32+
[dependencies.fl16-inputmodules]
33+
path = "../fl16-inputmodules"
3434
features = [ "c1minimal" ]

c1minimal/src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Lotus C1 Minimal Input Module
1+
//! C1 Minimal Input Module
22
//!
33
//! Neopixel/WS2812 compatible RGB LED is connected to GPIO16.
44
//! This pin doesn't support SPI TX.
@@ -21,7 +21,7 @@ use rp2040_panic_usb_boot as _;
2121

2222
// Provide an alias for our BSP so we can switch targets quickly.
2323
// Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.
24-
use lotus_inputmodules::lotus_minimal_hal as bsp;
24+
use fl16_inputmodules::minimal_hal as bsp;
2525
//use rp_pico as bsp;
2626

2727
use bsp::hal::{
@@ -52,11 +52,11 @@ pub type Ws2812<'a> = ws2812_pio::Ws2812<
5252
Gpio16,
5353
>;
5454

55-
use lotus_inputmodules::control::*;
56-
use lotus_inputmodules::serialnum::{device_release, get_serialnum};
55+
use fl16_inputmodules::control::*;
56+
use fl16_inputmodules::serialnum::{device_release, get_serialnum};
5757

5858
// FRA - Framwork
59-
// 000 - Lotus C1 Minimal Input Module (No assigned value)
59+
// 000 - C1 Minimal Input Module (No assigned value)
6060
// AM - Atemitech
6161
// 00 - Default Configuration
6262
// 00000000 - Device Identifier
@@ -109,8 +109,8 @@ fn main() -> ! {
109109
};
110110

111111
let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x32ac, 0x0022))
112-
.manufacturer("Framework")
113-
.product("Lotus C1 Minimal Input Module")
112+
.manufacturer("Framework Computer Inc")
113+
.product("C1 Minimal Input Module")
114114
.serial_number(serialnum)
115115
.max_power(500) // TODO: Check how much
116116
.device_release(device_release())

control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ def gui():
988988

989989
[sg.Button("Quit")]
990990
]
991-
window = sg.Window("Lotus LED Matrix Control", layout)
991+
window = sg.Window("LED Matrix Control", layout)
992992
global STOP_THREAD
993993
while True:
994994
event, values = window.read()

lotus-inputmodules/Cargo.toml renamed to fl16-inputmodules/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
edition = "2021"
3-
name = "lotus-inputmodules"
3+
name = "fl16-inputmodules"
44
version = "0.1.4"
55

66
[dependencies]
@@ -14,7 +14,7 @@ defmt-rtt = "0.4"
1414
#panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
1616

17-
# Not using a BSP, we've got a Lotus BSP's locally in this crate
17+
# Not using an external BSP, we've got the Framework Laptop 16 BSPs locally in this crate
1818
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
1919
rp2040-boot2 = "0.2"
2020

0 commit comments

Comments
 (0)