diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..65a6eec --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["ms-edu.pxt-vscode-web"] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d865f58 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,29 @@ +{ + "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, + "**/.pxt/**": true + }, + "files.associations": { + "*.blocks": "html", + "*.jres": "json" + }, + "search.exclude": { + "**/built": true, + "**/node_modules": true, + "**/yotta_modules": true, + "**/yotta_targets": true, + "**/pxt_modules": true, + "**/.pxt": true + }, + "files.exclude": { + "**/pxt_modules": true, + "**/.pxt": true + } +} \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..91ceacd --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9068464 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: deploy + +build: + pxt build + +deploy: + pxt deploy + +test: + pxt test diff --git a/README.md b/README.md new file mode 100644 index 0000000..edf80ec --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ + +> Abra esta pagina en [https://manuelortizus.github.io/control-servo/](https://manuelortizus.github.io/control-servo/) + +## Usar como extensión + +Este repositorio puede ser añadido como una **extensión** en MakeCode. + +* abra [https://makecode.microbit.org/](https://makecode.microbit.org/) +* haga clic en **New Project** +* haga clic en **Extensiones** en el menú del engranaje +* buscar **https://github.com/manuelortizus/control-servo** e importar + +## Edita este proyecto + +Para editar este repositorio en MakeCode. + +* abra [https://makecode.microbit.org/](https://makecode.microbit.org/) +* haga clic en **Import** luego haga clic en **Import URL** +* pegue **https://github.com/manuelortizus/control-servo** y haga clic en importar + +#### Metadatos (utilizados para búsqueda, renderizado) + +* for PXT/microbit + diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..f56a029 --- /dev/null +++ b/_config.yml @@ -0,0 +1,8 @@ +makecode: + target: microbit + platform: microbit + home_url: https://makecode.microbit.org/ +theme: jekyll-theme-slate +include: + - assets + - README.md diff --git a/main.blocks b/main.blocks new file mode 100644 index 0000000..cd87c89 --- /dev/null +++ b/main.blocks @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..d8f692e --- /dev/null +++ b/main.py @@ -0,0 +1,7 @@ +.#def on_forever(): + #pass +#basic.forever(on_forever) + +import machine +import time + diff --git a/main.ts b/main.ts new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/main.ts @@ -0,0 +1 @@ + diff --git a/pxt.json b/pxt.json new file mode 100644 index 0000000..f7e4b84 --- /dev/null +++ b/pxt.json @@ -0,0 +1,26 @@ +{ + "name": "Control servo", + "description": "", + "dependencies": { + "core": "*", + "radio": "*", + "microphone": "*" + }, + "files": [ + "main.blocks", + "main.ts", + "README.md", + "main.py" + ], + "testFiles": [ + "test.ts" + ], + "targetVersions": { + "target": "6.0.19", + "targetId": "microbit" + }, + "supportedTargets": [ + "microbit" + ], + "preferredEditor": "pyprj" +} diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..86b9d47 --- /dev/null +++ b/test.ts @@ -0,0 +1 @@ +// aquí va el archivo "tests"; esto no se compilará cuando este paquete se utilice como una extensión. diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..46f831b --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "ES5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + }, + "exclude": ["pxt_modules/**/*test.ts"] +}