This commit is contained in:
Peli de Halleux 2020-04-04 18:26:00 -07:00
Родитель 8c6cded66b
Коммит 0417e8950c
3 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,6 @@
---
---
# MakeCode Badge
A framework to create electronic badges in MakeCode Arcade
@ -46,3 +49,5 @@ Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("https://arcade.makecode.com/", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

Просмотреть файл

@ -2,6 +2,7 @@
"name": "badge",
"version": "0.0.5",
"description": "A framework to create electronic badges in MakeCode Arcade",
"license": "MIT",
"dependencies": {
"device": "*",
"palette": "*",
@ -9,7 +10,7 @@
"controller": "*",
"color": "*",
"power": "*",
"qrcode": "github:pelikhan/pxt-qrcode#v0.0.4"
"qrcode": "github:pelikhan/pxt-qrcode#v0.0.6"
},
"files": [
"README.md",
@ -24,7 +25,8 @@
"test.ts"
],
"public": true,
"license": "MIT",
"preferredEditor": "tsprj",
"installedVersion": "workspace:2e6496b4-688e-4eb1-9417-596218386937"
"supportedTargets": [
"arcade"
],
"preferredEditor": "tsprj"
}

Просмотреть файл

@ -1,8 +1,7 @@
// tests go here; this will not be compiled when this package is used as a library
badge.setName("Cortana")
badge.setCompany("NA")
badge.setLogo("NA", 3);
badge.start();
badge.setCompany("Company")
badge.setLogo("Logo", 3);
// user config
badge.setSocial("https://www.linkedin.com/in/xyz/")
@ -51,5 +50,5 @@ badge.setProgram({
]
})
storyboard.loaderBootSequence.register();
storyboard.loaderBootSequence.register()
badge.start()