Initial commit, based on pxt-adafruit
This commit is contained in:
28
libs/base/pxt.json
Normal file
28
libs/base/pxt.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "base",
|
||||
"description": "The base library",
|
||||
"files": [
|
||||
"README.md",
|
||||
"pxt-core.d.ts",
|
||||
"pxt.cpp",
|
||||
"pxtbase.h",
|
||||
"core.cpp",
|
||||
"pxt-helpers.ts",
|
||||
"buffer.cpp",
|
||||
"shims.d.ts",
|
||||
"enums.d.ts",
|
||||
"loops.cpp",
|
||||
"math.ts",
|
||||
"ns.ts",
|
||||
"control.cpp",
|
||||
"control.ts",
|
||||
"serial.cpp",
|
||||
"serial.ts"
|
||||
],
|
||||
"testFiles": [
|
||||
"test.ts"
|
||||
],
|
||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/base",
|
||||
"public": true,
|
||||
"dependencies": {}
|
||||
}
|
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)
|
||||
})
|
34
libs/ev3/ns.ts
Normal file
34
libs/ev3/ns.ts
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
//% color="#d65cd6"
|
||||
namespace input {
|
||||
}
|
||||
|
||||
//% color="#F55D3E"
|
||||
namespace music {
|
||||
|
||||
}
|
||||
|
||||
//% color="#1B998B"
|
||||
namespace control {
|
||||
|
||||
}
|
||||
|
||||
//% color="#EF2D56"
|
||||
namespace pins {
|
||||
|
||||
}
|
||||
|
||||
//% color="#006E90"
|
||||
namespace serial {
|
||||
|
||||
}
|
||||
|
||||
//% color="#40bf4a"
|
||||
namespace loops {
|
||||
|
||||
}
|
||||
|
||||
//% color="#4c97ff"
|
||||
namespace light {
|
||||
|
||||
}
|
13
libs/ev3/pxt.json
Normal file
13
libs/ev3/pxt.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "ev3",
|
||||
"description": "The EV3 library",
|
||||
"files": [
|
||||
"README.md",
|
||||
"ns.ts"
|
||||
],
|
||||
"dependencies": {
|
||||
"base": "file:../base",
|
||||
"core": "file:../core"
|
||||
},
|
||||
"public": true
|
||||
}
|
Reference in New Issue
Block a user