Created
November 1, 2017 00:56
-
-
Save dvsseed/ad20315d66f45ec9ad167bce32d21e60 to your computer and use it in GitHub Desktop.
uses yotta as an offline build system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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