Initial commit, based on pxt-adafruit
This commit is contained in:
4
libs/core/README.md
Normal file
4
libs/core/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# core
|
||||
|
||||
The core library for ev3 target.
|
||||
|
4
libs/core/ns.ts
Normal file
4
libs/core/ns.ts
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
//% color="#B4009E" weight=98 icon="\uf192"
|
||||
namespace input {
|
||||
}
|
7
libs/core/pxt.h
Normal file
7
libs/core/pxt.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifndef __PXT_H
|
||||
#define __PXT_H
|
||||
|
||||
#include "pxtbase.h"
|
||||
#undef DMESG
|
||||
|
||||
#endif
|
17
libs/core/pxt.json
Normal file
17
libs/core/pxt.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "core",
|
||||
"description": "The core library",
|
||||
"files": [
|
||||
"README.md",
|
||||
"pxt.h",
|
||||
"pxtcore.h",
|
||||
"ns.ts"
|
||||
],
|
||||
"testFiles": [
|
||||
"test.ts"
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"base": "file:../base"
|
||||
}
|
||||
}
|
7
libs/core/pxtcore.h
Normal file
7
libs/core/pxtcore.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifndef __PXTCORE_H
|
||||
#define __PXTCORE_H
|
||||
|
||||
//void codal_dmesg(const char *format, ...);
|
||||
#define DMESG(...) /* nothing */
|
||||
|
||||
#endif
|
11
libs/core/test.ts
Normal file
11
libs/core/test.ts
Normal file
@ -0,0 +1,11 @@
|
||||
let i = 1
|
||||
let f = 0.5
|
||||
let plus = i + f
|
||||
let minus = i - f
|
||||
|
||||
let r = Math.random()
|
||||
let ri = Math.randomRange(5, 10)
|
||||
|
||||
loops.forever(() => {
|
||||
loops.pause(100)
|
||||
})
|
Reference in New Issue
Block a user