diff options
author | Jesse Vincent <jesse@keyboard.io> | 2017-08-04 17:19:51 +0900 |
---|---|---|
committer | Jesse Vincent <jesse@keyboard.io> | 2017-08-04 17:19:51 +0900 |
commit | 4815225c9aa7eb8bcc81398afe7de161ef6857a9 (patch) | |
tree | 477146842d87addef3b9df17d7bf27d1de013722 | |
parent | c273d3f9ce7cad9242316ca696bb454f0266dc9d (diff) | |
download | Model01-Firmware-4815225c9aa7eb8bcc81398afe7de161ef6857a9.tar.gz Model01-Firmware-4815225c9aa7eb8bcc81398afe7de161ef6857a9.zip |
A pass at cleaning up the install instructions and Makefile a bit
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 24 |
2 files changed, 11 insertions, 18 deletions
@@ -5,9 +5,10 @@ MAKEFILE_PREFIX=keyboardio/avr/libraries/Kaleidoscope-Plugin/build UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) -BOARD_HARDWARE_PATH ?= $(HOME)/Documents/Arduino/hardware +SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/ else -BOARD_HARDWARE_PATH ?= $(HOME)/Arduino/hardware +SKETCHBOOK_DIR ?= $(HOME)/arduino endif +BOARD_HARDWARE_PATH ?= $(SKETCHBOOK_DIR)/hardware include $(BOARD_HARDWARE_PATH)/$(MAKEFILE_PREFIX)/rules.mk @@ -10,38 +10,30 @@ Pick a directory to work in, you'll need to clone multiple repositories. We'll a Setup the Arduino IDE on your system. Make sure you install at least version 1.6, since older version may not support all required features. -* On Linux, follow the instructions [on the wiki](https://github.com/keyboardio/Kaleidoscope/wiki/Arduino-Setup-Linux). +* On Linux, follow the instructions [on the wiki](https://github.com/keyboardio/Kaleidoscope/wiki/Arduino-Setup-Linux), installing the Arduino package somewhere that 'arduino' and 'arduino-builder' end up in your $PATH * On macOS, install using [homebrew](http://brew.sh/) [cask](https://caskroom.github.io/) with `brew cask install arduino` or download the application from [the official website](https://www.arduino.cc/en/Main/Software) and move it to your `/Applications` folder. ## Install the Kaleidoscope Hardware Definitions ```sh -# you'll need to know your arduino sketchbook directory +# You'll need to know your arduino sketchbook directory # on macOS the default is SKETCHBOOK_DIR=$HOME/Documents/Arduino # on Linux the default is SKETCHBOOK_DIR=$HOME/Arduino -# make a directory for kaleidoscope, the Model 01 firmware -mkdir $HOME/kaleidoscope - -# go to your kaleidoscope directory -cd $HOME/kaleidoscope - -# then clone the hardware definitions -git clone --recursive https://github.com/keyboardio/Arduino-Boards.git - -# and make them available to the arduino environment +# Make a directory for the Arduino sketchbook and our hardware definitions mkdir -p $SKETCHBOOK_DIR/hardware/keyboardio -ln -s $HOME/kaleidoscope/Arduino-Boards $SKETCHBOOK_DIR/hardware/keyboardio/avr -``` + +# then clone the hardware definitions to make them available to the arduino environment +git clone --recursive https://github.com/keyboardio/Arduino-Boards.git $SKETCHBOOK_DIR/hardware/keyboardio/avr ## Clone and Build the Kaleidoscope Firmware for the Model 01 ```sh -# go to your keyboardio directory -cd $HOME/kaleidoscope +# go to your Arduino sketchbook +cd $SKETCHBOOK # then clone the firmware repository git clone https://github.com/keyboardio/Model01-Firmware.git |