From 6966396ba6d6f2569d7cf57078be7c736b39da69 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 9 Feb 2023 17:30:53 +0100 Subject: Update README --- README.md | 16 ++++++++++++++++ src/app.c | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3943a52..3ef9ee8 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,22 @@ brew install gcc-arm-none-eabi make ``` +## Using Linux + +Install a compatible arm-none-eabi-gcc compiler from your distribution package +manager. Make sure to initialize the submodules of this git repository after +cloning. + +``` +git submodule init +git submodule update +make +``` + +You can use `make run` to upload the firmware to the Launchpad Pro using +`amidi`. Make sure to update or pass the Makefile `PORT` variable with your +Launchpad's ID, obtained using `amidi -l`. + # Uploading to a Launchpad Pro Now you've got some nice new code to run! To upload it to your Launchpad Pro, you'll need a sysex tool for your host platform (I'd love to get it working from the virtual machine, but that's for later). I recommend [Sysex Librarian](http://www.snoize.com/SysExLibrarian/) on macOS, and [MIDI OX](http://www.midiox.com/) on Windows. On Linux, I'll bet you already have a tool in mind. diff --git a/src/app.c b/src/app.c index aeb5c84..aacc68f 100644 --- a/src/app.c +++ b/src/app.c @@ -198,7 +198,7 @@ typedef struct State { u8 ch_min; u8 ch_max; u8 ch_listen[16]; - u8 mode; + Mode mode; } State; // Globals. -- cgit v1.2.1