Initial commit, based on pxt-adafruit

This commit is contained in:
Michal Moskal 2017-06-29 15:47:26 +01:00
commit 207e7a026c
133 changed files with 1670 additions and 0 deletions

5
.clang-format Normal file
View File

@ -0,0 +1,5 @@
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
ColumnLimit: 100
AllowShortFunctionsOnASingleLine: Inline

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
# enforce unix style line endings
*.ts text eol=lf
*.tsx text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.js text eol=lf
*.json text eol=lf
*.xml text eol=lf
*.svg text eol=lf
*.yaml text eol=lf
*.css text eol=lf
*.html text eol=lf
*.py text eol=lf
*.exp text eol=lf
*.manifest text eol=lf
# do not enforce text for everything - it causes issues with random binary files
*.sln text eol=crlf
*.png binary
*.jpg binary
*.jpeg binary

31
.gitignore vendored Normal file
View File

@ -0,0 +1,31 @@
node_modules
yotta_modules
yotta_targets
pxt_modules
built
typings
tmp
temp
projects/**
clients/win10/app/AppPackages
clients/win10/app/BundlePackages
clients/win10/app/BundleArtifacts
clients/win10/app/bin
clients/win10/app/bld
clients/win10/*.opendb
clients/**/bin/**
clients/**/obj/**
clients/electron/projects
videos/**
*.user
*.sw?
*.ts.new
*.tgz
*.db
*.suo
*.log
.pioenvs
.piolibdeps
lib/

26
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,26 @@
# Contributing Code
This repo accepts bug fix pull requests. For a bug fix PR to be accepted, it must first have a tracking issue that has been marked approved. Your PR should link to the bug you are fixing. If you've submitted a PR for a bug, please post a comment in the bug to avoid duplication of effort.
This repo also accepts new feature pull requests. For a feature-level PR to be accepted, it first needs to have design discussion. Design discussion can take one of two forms a) a feature request in the issue tracker that has been marked as approved or b) the PR must be accompanied by a full design spec and this spec is later approved in the open design discussion. Features are evaluated against their complexity, impact on other features, roadmap alignment, and maintainability.
These two blogs posts on contributing code to open source projects are a good reference: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik.
## Security
If you believe you have found a security issue here, please share it with us privately following the guidance at the Microsoft [Security TechCenter](https://technet.microsoft.com/en-us/security/ff852094). Reporting it via this channel helps minimize risk to projects built with this repo.
## Legal
You will need to complete a Contributor License Agreement (CLA) before your pull request can be accepted. This agreement testifies that you are granting us permission to use the source code you are submitting, and that this work is being submitted under appropriate license that we can use it.
You can complete the CLA by going through the steps at https://cla.microsoft.com. Once we have received the signed CLA, we'll review the request. You will only need to do this once.
## Housekeeping
Your pull request should:
* Include a description of what your change intends to do
* Be a child commit of a reasonably recent commit in the master branch
* Pass all unit tests
* Have a clear commit message
* Include adequate tests

25
LICENSE Normal file
View File

@ -0,0 +1,25 @@
PXT-EV3
The MIT License (MIT)
Copyright (c) Microsoft Corporation
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

67
README.md Normal file
View File

@ -0,0 +1,67 @@
# LEGO Mindstorms EV3 target for PXT
[![Build Status](https://ci2.dot.net/buildStatus/icon?job=Private/pxt_project_pink/master/pxt-ev3_Push)](https://ci2.dot.net/job/Private/job/pxt_project_pink/job/master/job/pxt-ev3_Push/)
This repo contains the editor target hosted at https://lego.makecode.com
## Local Dev setup
These instructions assume familiarity with dev tools and languages.
* install Node.js 6+
* install [yotta](http://docs.yottabuild.org/#installing)
* (optional) install [Visual Studio Code](https://code.visualstudio.com/)
In a common folder,
* clone https://github.com/Microsoft/pxt to ``pxt`` folder
* clone https://github.com/Microsoft/pxt-common-packages to ``pxt-common-packages`` folder
* clone https://github.com/Microsoft/pxt-ev3 to ``pxt-ev3`` folder
* go to ``pxt`` and run
```
npm install
typings install
```
* go to ``pxt-common-packages`` and run
```
npm install
npm link ../pxt
```
* go to ``pxt-ev3`` and run
```
npm install
npm link ../pxt
npm link ../pxt-common-packages
```
## to run the local server
From root github folder,
```
cd pxt-ev3
pxt serve --cloud
```
## to build and deploy a single package via command line
```
cd libs/core
pxt deploy
```
## Jenkins build
https://ci2.dot.net/job/Private/job/pxt_project_pink/job/master/
## License
MIT
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

16
THIRD-PARTY-NOTICES.txt Normal file
View File

@ -0,0 +1,16 @@
/*!----------------- PXT ThirdPartyNotices -------------------------------------------------------
PXT uses third party material from the projects listed below.
The original copyright notice and the license under which Microsoft
received such third party material are set forth below. Microsoft
reserves all other rights not expressly granted, whether by
implication, estoppel or otherwise.
In the event that we accidentally failed to list a required notice, please
bring it to our attention. Post an issue or email us:
makecode@microsoft.com
---------------------------------------------
Third Party Code Components
---------------------------------------------

7
cmds/pxtrequire.ts Normal file
View File

@ -0,0 +1,7 @@
/// <reference path="../node_modules/pxt-core/typings/globals/node/index.d.ts"/>
/// <reference path="../node_modules/pxt-core/built/pxtlib.d.ts" />
import * as path from "path";
export let pxtCore = require("pxt-core");
// require.resolve() gives path to [pxt dir]/built/pxt.js, so move up twice to get pxt root dir
export let pxtCoreDir = path.resolve(require.resolve("pxt-core"), "..", "..");

13
cmds/tsconfig.json Normal file
View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es5",
"noImplicitAny": true,
"noImplicitReturns": true,
"declaration": true,
"outDir": "../built",
"module": "commonjs",
"rootDir": ".",
"newLine": "LF",
"sourceMap": false
}
}

11
docs/SUMMARY.md Normal file
View File

@ -0,0 +1,11 @@
# @extends
## Reference #reference
* [Reference](/reference)
* [input](/reference/input)
* [light](/reference/light)
* [music](/reference/music)
* [pins](/reference/pins)
* [control](/reference/control)
* [serial](/reference/serial)

43
docs/about.md Normal file
View File

@ -0,0 +1,43 @@
# About
Welcome to the **Microsoft MakeCode** editor for the **@boardname@**!
## Programming: [Blocks](/blocks) or [JavaScript](/javascript)
You can program the @boardname@ using [Blocks](/blocks) or [JavaScript](/javascript) in your web browser:
```block
input.buttonA.onEvent(ButtonEvent.Click, () => {
light.showRing(`blue blue blue blue blue blue blue blue blue blue`)
})
```
```typescript
input.buttonA.onEvent(ButtonEvent.Click, () => {
light.showRing(`blue blue blue blue blue blue blue blue blue blue`)
})
```
The editor work in [most modern browsers](/browsers), work [offline](/offline) once loaded and do not require any installation.
## [Compile and Flash: Your Program!](/device/usb)
When you have your code ready, you connect your @boardname@ to a computer via a USB cable
**then press the reset button** so it appears as a mounted drive (named **CPLAYBOOT**).
Compilation to machine code from [Blocks](/blocks) or [JavaScript](/javascript) happens in the browser. You save the binary
program to a **.uf2** file, which you then copy to the **CPLAYBOOT** drive, which flashes the device with the new program.
## Simulator: Test Your Code
You can run your code using the micro:bit simulator, all within the confines of a web browser.
The simulator has support for the LED screen, buttons, as well as compass, accelerometer, and digital I/O pins.
```sim
loops.forever(() => {
light.pixels.showAnimation(light.animation(LightAnimation.Rainbow), 1000)
})
```
```package
light
```

3
docs/beta-ref.json Normal file
View File

@ -0,0 +1,3 @@
{
"appref": "v"
}

8
docs/blocks/loops.md Normal file
View File

@ -0,0 +1,8 @@
# @extends
### #specific
```cards
loops.forever(() => {});
loops.pause(0)
```

14
docs/docs.md Normal file
View File

@ -0,0 +1,14 @@
# Documentation
### @description Links to the documentation, reference and projects.
Welcome to the documentation of the Microsoft MakeCode editor
for the @boardname@.
## Documentation
* [About](/about)
* [Examples](/examples)
* [Blocks](/blocks)
* [JavaScript](/javascript)
* [Reference](/reference)

8
docs/examples.md Normal file
View File

@ -0,0 +1,8 @@
# Examples
Here are some fun programs for your @boardname@!
## Fun stuff
Coming soon.

3
docs/index-ref.json Normal file
View File

@ -0,0 +1,3 @@
{
"appref": "v"
}

9
docs/projects.md Normal file
View File

@ -0,0 +1,9 @@
# Projects
Here are some cool projects that you can build with your @boardname@!
## Basic
Basic projects to build with your @boardname@.
Coming soon.

19
docs/reference.md Normal file
View File

@ -0,0 +1,19 @@
# Reference
```namespaces
input.onGesture(Gesture.Shake, () => {})
light.showRing('red red red red red red red red red red')
music.playTone(0, 0)
pins.pulseDuration()
control.runInBackground(() => {})
serial.writeLine("");
```
## See Also
[blocks](/blocks), [JavaScript](/javascript), [input](/reference/input), [light](/reference/light), [music](/reference/music),
[control](/reference/control), [pins](/reference/pins), [serial](/reference/serial)
```package
circuit-playground
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

40
jenkins.groovy Normal file
View File

@ -0,0 +1,40 @@
import jobs.generation.Utilities;
import jobs.generation.InternalUtilities;
def project = GithubProject
def projectName = "pxt-ev3"
[true, false].each { isPR ->
def newJobName = projectName
if (isPR) {
newJobName += "_PR"
} else {
newJobName += "_Push"
}
def newJob = job(newJobName) {
steps {
shell("chmod +x ./jenkins.sh")
shell("./jenkins.sh ${isPR}")
}
if (!isPR) {
wrappers {
credentialsBinding {
string("PXT_ACCESS_TOKEN", "pxt_access_token")
string("PXT_RELEASE_REPO", "pxt_release_repo_ev3")
}
}
}
}
Utilities.setMachineAffinity(newJob, "Ubuntu", "20161020")
InternalUtilities.standardJobSetup(newJob, project, isPR, "*/*")
if (isPR) {
Utilities.addGithubPRTrigger(newJob, "Default Testing")
} else {
Utilities.addGithubPushTrigger(newJob)
}
}

56
jenkins.sh Executable file
View File

@ -0,0 +1,56 @@
#!/usr/bin/env bash
# Set up NVM
export NVM_DIR="/home/dotnet-bot/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install 5
# Set up build environment variables
echo ---------- Setting build environment variables
echo Git branch: $GIT_BRANCH
echo isPR: $1
originRegex="^origin/.*"
branchRegex="^origin/\K.*(?=$)"
releaseBranchRegex="^(master|v\d+)$"
if [[ "$GIT_BRANCH" =~ $originRegex ]]; then
branchName=$(echo ${GIT_BRANCH} | grep -oP $branchRegex)
echo Setting TRAVIS_BRANCH to ${branchName}
export TRAVIS_BRANCH=${branchName}
else
echo Setting TRAVIS_BRANCH to $GIT_BRANCH
export TRAVIS_BRANCH=$GIT_BRANCH
fi
if [ "$1" == "false" ]; then
echo Setting TRAVIS_PULL_REQUEST to false
export TRAVIS_PULL_REQUEST=false
if [[ "$TRAVIS_BRANCH" =~ $releaseBranchRegex ]]; then
if [[ -z $PXT_RELEASE_REPO ]]; then
echo Cannot find release repo\; skipping tag checks
else
gitTag=$(git describe --tags --exact-match 2> /dev/null)
builtTag=$(git ls-remote --tags $PXT_RELEASE_REPO | grep -o "refs/tags/$gitTag$")
echo Current tag: $gitTag
echo Built tag: $builtTag
if [[ ! -z $gitTag && -z $builtTag ]]; then
echo Built tag not found\; building tag
echo Setting TRAVIS_BRANCH to $gitTag
export TRAVIS_BRANCH=$gitTag
echo Setting TRAVIS_TAG to $gitTag
export TRAVIS_TAG=$gitTag
else
echo Not a tag build
fi
fi
fi
fi
# Perform build
npm install
npm test

28
libs/base/pxt.json Normal file
View 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
View File

@ -0,0 +1,4 @@
# core
The core library for ev3 target.

4
libs/core/ns.ts Normal file
View File

@ -0,0 +1,4 @@
//% color="#B4009E" weight=98 icon="\uf192"
namespace input {
}

7
libs/core/pxt.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef __PXT_H
#define __PXT_H
#include "pxtbase.h"
#undef DMESG
#endif

17
libs/core/pxt.json Normal file
View 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
View 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
View 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
View 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
View 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
}

48
package.json Normal file
View File

@ -0,0 +1,48 @@
{
"name": "pxt-ev3",
"version": "0.0.0",
"description": "LEGO Mindstorms EV3 for Microsoft MakeCode",
"private": true,
"keywords": [
"JavaScript",
"education",
"lego",
"pxt",
"MakeCode",
"Microsoft"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/pxt-ev3.git"
},
"author": "",
"license": "MIT",
"homepage": "https://github.com/Microsoft/pxt-ev3#readme",
"files": [
"README.md",
"pxtarget.json",
"built/*.js",
"built/*.json",
"built/*.d.ts",
"sim/public",
"docs/*.md",
"docs/*/*.md",
"docs/*/*/*.md"
],
"main": "built/pxtrequire.js",
"typings": "built/pxtrequire.d.ts",
"devDependencies": {
"typescript": "^1.8.7",
"less": "^2.6.0",
"rtlcss": "^2.1.2",
"autoprefixer": "^6.7.6",
"semantic-ui-less": "^2.2.4"
},
"dependencies": {
"pxt-common-packages": "0.8.1",
"pxt-core": "1.7.4"
},
"scripts": {
"test": "node node_modules/pxt-core/built/pxt.js travis"
}
}

136
pxtarget.json Normal file
View File

@ -0,0 +1,136 @@
{
"id": "ev3",
"platformid": "linux",
"nickname": "lego",
"name": "LEGO Mindstorms EV3",
"title": "LEGO Mindstorms EV3 - Blocks / Javascript editor",
"description": "A Blocks / JavaScript code editor for the LEGO Mindstorms EV3.",
"corepkg": "ev3",
"bundleddirs": [
"libs/base",
"libs/core",
"libs/ev3"
],
"simulator": {
"autoRun": true,
"streams": true,
"aspectRatio": 1.0,
"parts": false,
"enableTrace": true
},
"cloud": {
"workspace": false,
"packages": true,
"sharing": true,
"publishing": true,
"importing": false,
"preferredPackages": [],
"githubPackages": true
},
"compile": {
"isNative": true,
"useUF2": true,
"hasHex": true,
"deployDrives": ".*",
"deployFileMarker": "INFO_UF2.TXT",
"driveName": "LEGO",
"flashCodeAlign": 256,
"floatingPoint": true,
"taggedInts": true
},
"runtime": {
"mathBlocks": true,
"loopsBlocks": true,
"logicBlocks": true,
"variablesBlocks": true,
"textBlocks": true,
"listsBlocks": true,
"functionBlocks": true,
"onStartNamespace": "loops",
"onStartColor": "#40bf4a"
},
"compileService": {
"buildEngine": "dockermake",
"serviceId": "ev3"
},
"appTheme": {
"accentColor": "#0089BF",
"logoUrl": "https://lego.makecode.com",
"logo": "./static/logo.svg",
"docsLogo": "./static/logo.square.svg",
"portraitLogo": "./static/logo.square.svg",
"footerLogo": "./static/logo.square.svg",
"cardLogo": "./static/icons/android-chrome-192x192.png",
"appLogo": "./static/icons/android-chrome-192x192.png",
"organization": "Microsoft MakeCode",
"organizationUrl": "https://makecode.com/",
"organizationLogo": "./static/Microsoft-logo_rgb_c-gray-square.png",
"organizationWideLogo": "./static/Microsoft-logo_rgb_c-white.png",
"homeUrl": "https://lego.makecode.com/",
"embedUrl": "https://lego.makecode.com/",
"privacyUrl": "https://go.microsoft.com/fwlink/?LinkId=521839",
"termsOfUseUrl": "https://go.microsoft.com/fwlink/?LinkID=206977",
"githubUrl": "https://github.com/Microsoft/pxt-ev3",
"boardName": "LEGO Mindstorms EV3 Brick",
"docMenu": [
{
"name": "About",
"path": "/about"
},
{
"name": "Examples",
"path": "#projects:Examples"
},
{
"name": "Blocks",
"path": "/blocks"
},
{
"name": "JavaScript",
"path": "/javascript"
},
{
"name": "Reference",
"path": "/reference"
},
{
"name": "Buy",
"path": "https://www.lego.com/en-us/mindstorms/products/mindstorms-ev3-31313"
}
],
"galleries": {
"Make": "projects",
"Examples": "examples"
},
"sideDoc": "tutorials/getting-started",
"invertedMenu": true,
"invertedToolbox": true,
"invertedMonaco": true,
"monacoToolbox": true,
"simAnimationEnter": "roll in",
"simAnimationExit": "roll out",
"exampleGallery": "examples",
"hasAudio": true,
"usbHelp": [],
"extendEditor": true,
"disableBlockIcons": true,
"blocklyOptions": {
"grid": {
"spacing": 20,
"length": 2,
"colour": "rgba(189, 195, 199, 0.20)",
"snap": true
}
},
"blockColors": {
"loops": "#40bf4a",
"logic": "#4cbfe6",
"math": "#9966ff",
"variables": "#FF6680",
"text": "#ffab19",
"advanced": "#00272B",
"functions": "#005a9e",
"arrays": "#8A1C7C"
}
}
}

10
targetconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"packages": {
"approvedOrgs": [
"Microsoft",
"LEGO"
],
"approvedRepos": [
]
}
}

39
theme/fieldeditors.less Normal file
View File

@ -0,0 +1,39 @@
/*******************************
Field Light
*******************************/
#field-neopixels {
cursor: default;
}
#field-neopixels .neopixel, #field-neopixels .colorbutton {
cursor:pointer;
}
#field-neopixels .neopixel {
stroke: #fff;
stroke-width:2px;
}
#field-neopixels .neopixel:hover {
stroke-width: 4px !important;
stroke:#fc3;
}
#field-neopixels .colorbutton {
stroke:black;
stroke-width: 2px;
stroke-opacity: 1;
}
#field-neopixels .colorbutton:hover {
stroke:#fc3;
stroke-width: 3px;
}
#field-neopixels .colorbutton.active {
stroke:#fc3;
stroke-width: 4px !important;
}

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,8 @@
/*******************************
Site Overrides
*******************************/
.ui.menu.inverted .item {
text-transform: uppercase;
}

View File

@ -0,0 +1,5 @@
/*******************************
User Variable Overrides
*******************************/
@invertedItemTextColor: @white;

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*-------------------
Flag Variables
--------------------*/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,6 @@
/*******************************
User Variable Overrides
*******************************/
@invertedItemTextColor: @primaryColor;
@transparentInvertedColor: @primaryColor;

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Global Variables
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,90 @@
/*******************************
User Global Variables
*******************************/
@importGoogleFonts: true;
@fontName : 'Open Sans';
@emSize : 14px;
@fontSize : 13px;
@primaryColor: @blue;
@secondaryColor: @pink;
@red:#CC2936;
@yellow:#FFC914;
@teal:#08415C;
@violet:#C200C0;
@brown:#2E282A;
@grey:#999;
/* Adafruit colors */
@blue:#2EB7ED;
@pink:#FB48C7;
@green: #40bf4a; /*#00922B;*/
@purple:#8073E5;
@orange:#FFA702;
@pageBackground: #ecf0f1;
/*******************************
PXT Overrides
*******************************/
/*-------------------
Menu
--------------------*/
@mainMenuInvertedBackground: @blue;
@mainMenuTutorialBackground: @orange;
@mainMenuBlocksJsToggleColor: @black;
@tutorialSelectedMenuColor: @blue;
/*-------------------
Layout
--------------------*/
@sideBarWidth: 22rem;
@simulatorWidth: 24rem;
@simulatorWidthSmall: 20rem;
/*-------------------
Background
--------------------*/
@simulatorBackground: #2F2F2F; /*#313638;*/
@editorToolsBackground: #2F2F2F; /*#1e1e1e;*/
@blocklySvgColor: #4c4b4d; /*#1e1e1e;*/
/*-------------------
Full screen
--------------------*/
@fullscreenBackgroundGradientStart: @mainMenuInvertedBackground;
@fullscreenBackgroundGradientEnd: #fff;
/*-------------------
Side Docs
--------------------*/
@sidedocsButtonsTop: (@mainMenuHeight + 1rem);
@sidedocsButtonsRight: 4.25rem;
/*-------------------
Editor
--------------------*/
@blocklyToolboxColor: transparent;
@trashIconColor: @primaryColor;
/*-------------------
Blockly
--------------------*/
@blocklyRowWidthWide: 160px;
@blocklyRowWidthComputer: 140px;

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
Site Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Overrides
*******************************/

View File

@ -0,0 +1,3 @@
/*******************************
User Variable Overrides
*******************************/

Some files were not shown because too many files have changed in this diff Show More