Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add microbit images #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ microbit-pixelbuttons:
make build-microbit-pixelbuttons
make flash-microbit-pixelbuttons

build-microbit-images:
docker run --rm -v "$(PWD):/src" -v "$(GOPATH):/gohost" -e "GOPATH=$(GOPATH):/gohost" tinygo/tinygo:0.6.1 tinygo build -o /src/build/microbit-images.hex -target microbit /src/microbit-images/main.go

flash-microbit-images:
openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c 'program build/microbit-images.hex reset exit'

microbit-images:
make clean
make build-microbit-pixelbuttons
make flash-microbit-pixelbuttons

build-microbit-accel:
docker run --rm -v "$(PWD):/src" -v "$(GOPATH):/gohost" -e "GOPATH=$(GOPATH):/gohost" tinygo/tinygo:0.6.1 tinygo build -o /src/build/microbit-accel.hex -target microbit /src/accel/main.go

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ Various sample programs for microcontrollers using TinyGo (http://tinygo.org)
sudo apt-get install avrdude

- PCA10040
Install nrfjprog as follows.
Install nrfjprog as follows.

First install the J-Link Software and Documentation Pack from Segger:
https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack

Then install the nRF5x Command-Line Tools:
https://docs.zephyrproject.org/latest/tools/nordic_segger.html#nordic-segger


## Blink for BBC micro:bit

make microbit-blink
Expand All @@ -40,6 +39,10 @@ https://docs.zephyrproject.org/latest/tools/nordic_segger.html#nordic-segger

make microbit-pixelbuttons

## Images for BBC micro:bit

make microbit-images

## Color lamp for Arduino Uno

make arduino-colorlamp
Expand Down
Loading