aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-06-28 18:23:47 +0200
committerQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-06-29 13:40:49 +0200
commitdeac92b74913ed418dd7999fc05df21f173bcd24 (patch)
treee30148bba1ffbd923021edbfcb8c44f36730beed
parent32de6030ece602fdc485733f16a89ffaf1b0b644 (diff)
mule-attiny: i2c-flash: add a console script
This makes a new console script called `mule-attiny_i2c_flash` available to the user after installing the package which calls the `main` function from the i2c_flash package. Users now just need to call mule-attiny_i2c_flash from anywhere on their system to flash the Mule-ATtiny companion microcontroller over I2C. Relates-to: EHSW-1799 Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r--mule-attiny/i2c-flash/pyproject.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/mule-attiny/i2c-flash/pyproject.toml b/mule-attiny/i2c-flash/pyproject.toml
index e82d817..28260b5 100644
--- a/mule-attiny/i2c-flash/pyproject.toml
+++ b/mule-attiny/i2c-flash/pyproject.toml
@@ -22,3 +22,6 @@ dependencies = [
"gpiod==1.5.4",
"smbus2==0.4.2",
]
+
+[project.scripts]
+mule-attiny_i2c_flash = "i2c_flash:main"