Skip to content

Commit

Permalink
DF-Driver/2018-1-18
Browse files Browse the repository at this point in the history
  • Loading branch information
lixin7 committed Jan 18, 2018
0 parents commit d3a4ef1
Show file tree
Hide file tree
Showing 10 changed files with 489 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
built
node_modules
yotta_modules
yotta_targets
pxt_modules
*.db
*.tgz
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: node_js
node_js:
- "5.7.0"
script:
- "npm install -g pxt"
- "pxt target microbit"
- "pxt install"
- "pxt build"
sudo: false
cache:
directories:
- npm_modules
- pxt_modules
19 changes: 19 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,19 @@
{
"editor.formatOnType": true,
"files.autoSave": "afterDelay",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/built/**": true,
"**/node_modules/**": true,
"**/yotta_modules/**": true,
"**/yotta_targets": true,
"**/pxt_modules/**": true
},
"search.exclude": {
"**/built": true,
"**/node_modules": true,
"**/yotta_modules": true,
"**/yotta_targets": true,
"**/pxt_modules": true
}
}
30 changes: 30 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,30 @@

// A task runner that calls the MakeCode (PXT) compiler
{
"version": "2.0.0",
"tasks": [{
"label": "pxt deploy",
"type": "shell",
"command": "pxt deploy",
"group": "build",
"problemMatcher": [ "$tsc" ]
}, {
"label": "pxt build",
"type": "shell",
"command": "pxt build",
"group": "test",
"problemMatcher": [ "$tsc" ]
}, {
"label": "pxt clean",
"type": "shell",
"command": "pxt clean",
"group": "test",
"problemMatcher": [ "$tsc" ]
}, {
"label": "pxt serial",
"type": "shell",
"command": "pxt serial",
"group": "test",
"problemMatcher": [ "$tsc" ]
}]
}
10 changes: 10 additions & 0 deletions Makefile
@@ -0,0 +1,10 @@
all: deploy

build:
pxt build

deploy:
pxt deploy

test:
pxt test
26 changes: 26 additions & 0 deletions README.md
@@ -0,0 +1,26 @@
# DF-Driver

This is dc motor, stepper motor, steering gear library.

## TODO

- [ ] Add a reference for your blocks here
- [ ] Add "icon.png" image (300x200) in the root folder
- [ ] Add "- beta" to the GitHub project description if you are still iterating it.
- [ ] Turn on your automated build on https://travis-ci.org
- [ ] Use "pxt bump" to create a tagged release on GitHub
- [ ] Get your package reviewed and approved https://makecode.microbit.org/packages/approval

Read more at https://makecode.microbit.org/packages/build-your-own

## License

MIT

## Supported targets

* for PXT/microbit
(The metadata above is needed for package search.)
```package
gamePad=github:DFRobot/pxt-motor
```

0 comments on commit d3a4ef1

Please sign in to comment.