Commit graph

27 commits

Author SHA1 Message Date
Valentin Weber
01828a0e5b
chore: fmt 2025-02-23 12:21:59 +01:00
Valentin Weber
1c93e56147
Merge branch 'feat/brightnesscontrol' 2025-02-23 12:19:28 +01:00
Valentin Weber
1535b571c7
feat(src/protocol.rs): add test
Add test for Brightness to u8 conversion.
2025-02-22 20:04:26 +01:00
Valentin Weber
00cdff615a
Squashed commit of the following:
commit 9f6c282e48
Author: Valentin Weber <valentin@wv2.ch>
Date:   Sat Feb 22 18:42:03 2025 +0100

    feat: move proporional font functonality to feature

commit 36f748c092
Author: Valentin Weber <valentin@wv2.ch>
Date:   Sat Feb 22 02:51:54 2025 +0100

    chore: clean up LICENSE-MIT copyriht notice

commit fe3abd83d7
Author: Valentin Weber <valentin@wv2.ch>
Date:   Fri Feb 21 22:28:40 2025 +0100

    feat: Move to proportional font

    To use the available space on the bade more efficient, I changed the
    font to u8g2_font_lucasfont_alternate_tf from
    [u8g2-fonts](https://docs.rs/crate/u8g2-fonts/).

    Lucasfont Alternate was created by Patrick Lauke and is licensed under
    [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/).
    No changes to the font were made.
2025-02-22 18:50:20 +01:00
Valentin Weber
1cb15622eb
feat: add support for brightness control 2025-02-22 11:51:06 +01:00
Valentin Weber
f13e4c215b
feat: Add support for brightness control (#3) 2025-02-22 11:29:22 +01:00
Valentin Weber
3724f16edf
Feat/u8g2 font lucasfont alternate tf (#1)
* feat: Move to proportional font

To use the available space on the bade more efficient, I changed the
font to u8g2_font_lucasfont_alternate_tf from
[u8g2-fonts](https://docs.rs/crate/u8g2-fonts/).

Lucasfont Alternate was created by Patrick Lauke and is licensed under
[CC BY 3.0](https://creativecommons.org/licenses/by/3.0/).
No changes to the font were made.
2025-02-22 11:20:02 +01:00
Valentin Weber
ce7d12fc58
chore(typo): Fix typo in README.md 2025-02-21 22:26:00 +01:00
Valentin Weber
f69187d00f
chore(typo): Fix typo in src/usb_hid.rs 2025-02-21 22:19:38 +01:00
Valentin Weber
e97ce74d6e
chore(typo): Fix typo in src/protocol.rs 2025-02-21 22:18:58 +01:00
Martin Michaelis
44222843d8 Add list devices option 2024-12-31 23:28:06 +00:00
dependabot[bot]
98b6f0b081 Bump the minor-updates group across 1 directory with 9 updates
Bumps the minor-updates group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.86` | `1.0.95` |
| [clap](https://github.com/clap-rs/clap) | `4.5.13` | `4.5.23` |
| [hidapi](https://github.com/ruabmbua/hidapi-rs) | `2.6.1` | `2.6.3` |
| [btleplug](https://github.com/deviceplug/btleplug) | `0.11.5` | `0.11.6` |
| [uuid](https://github.com/uuid-rs/uuid) | `1.10.0` | `1.11.0` |
| [serde](https://github.com/serde-rs/serde) | `1.0.204` | `1.0.217` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.121` | `1.0.134` |
| [time](https://github.com/time-rs/time) | `0.3.36` | `0.3.37` |



Updates `anyhow` from 1.0.86 to 1.0.95
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.86...1.0.95)

Updates `clap` from 4.5.13 to 4.5.23
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.13...clap_complete-v4.5.23)

Updates `hidapi` from 2.6.1 to 2.6.3
- [Release notes](https://github.com/ruabmbua/hidapi-rs/releases)
- [Commits](https://github.com/ruabmbua/hidapi-rs/compare/v2.6.1...v2.6.3)

Updates `btleplug` from 0.11.5 to 0.11.6
- [Changelog](https://github.com/deviceplug/btleplug/blob/master/CHANGELOG.md)
- [Commits](https://github.com/deviceplug/btleplug/compare/0.11.5...0.11.6)

Updates `uuid` from 1.10.0 to 1.11.0
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.10.0...1.11.0)

Updates `tokio` from 1.39.2 to 1.42.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.42.0)

Updates `serde` from 1.0.204 to 1.0.217
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.217)

Updates `serde_json` from 1.0.121 to 1.0.134
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.121...v1.0.134)

Updates `time` from 0.3.36 to 0.3.37
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.36...v0.3.37)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: hidapi
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: btleplug
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: time
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-31 23:51:16 +01:00
Martin Michaelis
116a506fe4 Update to zerocopy 0.8 2024-12-31 21:58:20 +00:00
dependabot[bot]
e7989e763f Bump the minor-updates group across 1 directory with 6 updates
Bumps the minor-updates group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.5.8` | `4.5.13` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.38.1` | `1.39.2` |
| [serde](https://github.com/serde-rs/serde) | `1.0.203` | `1.0.204` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.118` | `1.0.121` |
| [toml](https://github.com/toml-rs/toml) | `0.8.14` | `0.8.19` |
| [zerocopy](https://github.com/google/zerocopy) | `0.7.34` | `0.7.35` |



Updates `clap` from 4.5.8 to 4.5.13
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.8...v4.5.13)

Updates `tokio` from 1.38.1 to 1.39.2
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.1...tokio-1.39.2)

Updates `serde` from 1.0.203 to 1.0.204
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.203...v1.0.204)

Updates `serde_json` from 1.0.118 to 1.0.121
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.118...v1.0.121)

Updates `toml` from 0.8.14 to 0.8.19
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.14...toml-v0.8.19)

Updates `zerocopy` from 0.7.34 to 0.7.35
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/commits)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-updates
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: zerocopy
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-01 23:09:45 +02:00
Lilian
71f9ab3f19 Remove redundant BLE service UUID check as it is already done using a ScanFilter 2024-08-01 23:04:10 +02:00
Lilian
19db575be2 Address additional PR review comments for code simplification 2024-08-01 23:04:10 +02:00
Lilian
ba41bf3a65 Simplify error handling of BLE writing 2024-08-01 23:04:10 +02:00
Lilian
925fb45617 Address PR review comments for BLE feature 2024-08-01 23:04:10 +02:00
Lilian
e8a1ed3907 Improve error handling in BLE device enumeration 2024-08-01 23:04:10 +02:00
Lilian
c273d4cbfc Add support for transferring badge config via Bluetooth Low Energy
Adds a new crate feature `ble` that allows for transfering badge
configurations over Bluetooth Low Energy instead of USB.
Expands the CLI to allow for specification of the transport protocol,
either USB or BLE.

The BLE library uses async rust requiring to add tokio as a async runtime
to the CLI.
2024-08-01 23:04:10 +02:00
dependabot[bot]
9a155a85fb Bump the minor-updates group across 1 directory with 2 updates
Bumps the minor-updates group with 2 updates in the / directory: [clap](https://github.com/clap-rs/clap) and [serde_json](https://github.com/serde-rs/json).


Updates `clap` from 4.5.7 to 4.5.8
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.7...v4.5.8)

Updates `serde_json` from 1.0.117 to 1.0.118
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.117...v1.0.118)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-29 15:28:40 +02:00
dependabot[bot]
5e92559843 Bump clap from 4.5.6 to 4.5.7 in the minor-updates group
Bumps the minor-updates group with 1 update: [clap](https://github.com/clap-rs/clap).


Updates `clap` from 4.5.6 to 4.5.7
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.6...v4.5.7)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 21:41:26 +02:00
dependabot[bot]
043edac683 Bump clap from 4.5.4 to 4.5.6 in the minor-updates group
Bumps the minor-updates group with 1 update: [clap](https://github.com/clap-rs/clap).


Updates `clap` from 4.5.4 to 4.5.6
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.4...v4.5.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-08 14:09:43 +02:00
Martin Michaelis
d0149fc11e Enable dependabot 2024-06-08 13:55:27 +02:00
Martin Michaelis
03fa9668b5 Allow usage without embedded graphics 2024-06-07 20:04:53 +00:00
Martin Michaelis
8a885c7d70 Enable CI workflow
Fixes #1
2024-06-07 19:37:50 +00:00
Martin Michaelis
97d5561e81 Initial commit 2024-06-07 13:33:27 +00:00