From 9e9603b1d53033dc6056c772e1e7672aa36e5290 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 4 Mar 2024 15:53:56 +0100 Subject: [PATCH] initial commit --- .gitignore | 3 +++ .vscode/settings.json | 2 ++ .yotta.json | 6 ++++++ module.json | 11 +++++++++++ src/main.cpp | 10 ++++++++++ 5 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 .yotta.json create mode 100644 module.json create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af2b155 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +yotta_modules/ +yotta_targets/ +build/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/.yotta.json b/.yotta.json new file mode 100644 index 0000000..5c479e5 --- /dev/null +++ b/.yotta.json @@ -0,0 +1,6 @@ +{ + "build": { + "target": "bbc-microbit-classic-gcc,https://github.com/lancaster-university/yotta-target-bbc-microbit-classic-gcc", + "targetSetExplicitly": true + } +} diff --git a/module.json b/module.json new file mode 100644 index 0000000..a0564b9 --- /dev/null +++ b/module.json @@ -0,0 +1,11 @@ +{ + "name": "cloudapio-microbit", + "version": "0.0.1", + "description": "A microbit project", + "license": "BSD-2-Clause", + "dependencies": { + "microbit": "lancaster-university/microbit#v2.1.1" + }, + "targetDependencies": {}, + "bin": "./src" + } \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..0399d3b --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,10 @@ +#include "MicroBit.h" + +MicroBit uBit; + +int main() +{ + uBit.init(); + uBit.display.scroll("Hi!"); + release_fiber(); +} \ No newline at end of file