microbit: Hello Yotta!

This is a version of the SB2 repo, entirely comprised
of yotta modules.

This repo also includes a microbit-compatible microbit
target (see yotta_targets).
This commit is contained in:
James Devine 2015-07-31 18:18:49 +01:00
parent c5c2cfb221
commit 57c3ccc8ab
6 changed files with 5 additions and 15 deletions

0
module.json Executable file → Normal file
View file

20
source/main.cpp Executable file → Normal file
View file

@ -16,21 +16,11 @@
#include "MicroBit.h"
DigitalOut led1(LED1);
void periodicCallback(void)
{
/* Do blinky on LED1 while we're waiting for BLE events */
}
void app_main()
{
led1 = 1;
// infinite loop
while (1)
{
uBit.display.scrollString("ABC123");
uBit.sleep(1000);
}
while (1)
{
uBit.display.scrollString("HELLO! :)");
uBit.sleep(1000);
}
}

0
yotta_targets/bbc-microbit-armcc/.gitignore vendored Executable file → Normal file
View file

0
yotta_targets/bbc-microbit-armcc/CMake/toolchain.cmake Executable file → Normal file
View file

0
yotta_targets/bbc-microbit-armcc/readme.md Executable file → Normal file
View file

0
yotta_targets/bbc-microbit-armcc/target.json Executable file → Normal file
View file