Skip to content

Instantly share code, notes, and snippets.

@dvsseed
Created November 1, 2017 00:56
Show Gist options
  • Save dvsseed/ad20315d66f45ec9ad167bce32d21e60 to your computer and use it in GitHub Desktop.
Save dvsseed/ad20315d66f45ec9ad167bce32d21e60 to your computer and use it in GitHub Desktop.
uses yotta as an offline build system
@echo off
rem set the yotta build target
yt target bbc-microbit-classic-gcc
rem make sure cpp file goes into source dir
copy source\examples\bluetooth-eddystone-url\main.cpp source
rem and config.json in the microbit-samples dir
copy source\examples\bluetooth-eddystone-url\config.json .
rem build the project
yt clean
yt build
rem flash your micro:bit
copy build\bbc-microbit-classic-gcc\source\microbit-samples-combined.hex F:
if not errorlevel 1 goto end
echo An error occurred during formatting.
:end
echo End of batch program.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment