Compare commits

...

482 Commits

Author SHA1 Message Date
0a380a70d1 0.7.1 2016-12-16 07:26:11 -08:00
5c57e0faa4 fixing ver issues 2016-12-16 07:26:01 -08:00
41abeb62c3 0.6.2 2016-12-16 07:25:07 -08:00
b6eeeef4d5 0.6.1 2016-12-16 07:24:44 -08:00
b5b7edb978 moved to 0.6 2016-12-16 07:24:36 -08:00
a65fe1343c 0.5.98 2016-12-16 07:23:54 -08:00
3165fb3749 Bump pxt-core to 0.6.2 2016-12-16 07:23:48 -08:00
2789887f3b 0.5.97 2016-12-09 15:02:44 -08:00
d230fdd2fb Bump pxt-core to 0.5.99 2016-12-09 15:02:40 -08:00
88c9ef5b22 deploy feature now implemented in PXT 2016-12-08 21:11:50 -08:00
154115cc66 0.5.96 2016-12-08 16:38:10 -08:00
145dbaeb8f Merge pull request #8 from Microsoft/coreupdate
merging runtime memory leaks
2016-12-08 16:37:48 -08:00
1c8ceaef17 merging runtime memory leaks 2016-12-08 16:29:53 -08:00
e30c6f7149 0.5.95 2016-12-08 14:24:14 -08:00
e69174ed0f Bump pxt-core to 0.5.96 2016-12-08 14:24:09 -08:00
303d37ac9b toolbox buttons for tablet mode 2016-12-06 16:16:50 -08:00
69e2b41c40 Supporting new blockly toolbox buttons 2016-12-06 15:29:53 -08:00
8f04c8c20a 0.5.94 2016-12-02 12:59:04 -08:00
7661df09c8 Bump pxt-core to 0.5.87 2016-12-02 12:59:02 -08:00
62cbacc8ba theming the add package button 2016-12-01 23:53:38 -08:00
a9fd336093 Using white organisation logo for wide logo 2016-12-01 23:46:53 -08:00
d800f5fcb9 0.5.93 2016-11-30 15:21:10 -08:00
29e6f51798 Bump pxt-core to 0.5.85 2016-11-30 15:21:08 -08:00
ffb671d6b1 0.5.92 2016-11-30 03:33:14 -08:00
8eb4200b46 Bump pxt-core to 0.5.84 2016-11-30 03:33:08 -08:00
dfc7a1ddb9 nicer simulator animation 2016-11-30 03:32:53 -08:00
5e2ea5056b Merge pull request #7 from Microsoft/coregone
pxt-calliope-core gone
2016-11-30 03:16:44 -08:00
c417f0ed93 using microbit service 2016-11-29 22:17:51 -08:00
ce85907019 removing ksbit.h file 2016-11-29 21:55:37 -08:00
8cf0984a3f removing dependency on pxt-calliope-core 2016-11-29 21:51:14 -08:00
8eb1b98cd4 0.5.91 2016-11-29 00:19:49 -08:00
53f55c031c restoring microsoft 2016-11-29 00:12:00 -08:00
61b1150b8f 0.5.90 2016-11-29 00:06:17 -08:00
f574b91098 Bump pxt-core to 0.5.81 2016-11-29 00:06:16 -08:00
4a52f93367 updated cmds build options 2016-11-29 00:06:09 -08:00
fd0193e983 Updating with the MIT license text and contributing guideline 2016-11-28 17:14:09 -08:00
566326ea17 Fixing scrollimage for calliope 2016-11-17 10:14:12 -08:00
d7e1ec41b8 Setting blockly toolbox top / bottom radius in css after recent change. Setting loading to pulsar. 2016-11-16 21:17:00 -08:00
620297b95e update master, fixes sound bug 2016-11-16 07:53:56 +01:00
e9862751ba 0.5.89 2016-11-15 22:35:12 -08:00
5df83bb079 quick style fix 2016-11-15 22:35:02 -08:00
903c0ec6bd fixing music simulator 2016-11-15 22:28:05 -08:00
4be57eee9a 0.5.88 2016-11-15 20:10:37 -08:00
89a2178ff5 Bump pxt-core to 0.5.75 2016-11-15 20:10:35 -08:00
b3ffabba41 updated translations 2016-11-14 11:25:27 -08:00
c98e65a68c bumped to 0.5.87 2016-11-14 10:36:18 -08:00
2c70784251 0.5.87 2016-11-14 10:26:42 -08:00
00333b0257 Bump pxt-core to 0.5.74 2016-11-14 10:26:40 -08:00
d01c801f63 updated mutable block 2016-11-14 10:25:26 -08:00
05828ddcd9 0.5.86 2016-11-14 10:21:59 -08:00
f473835604 updated serial tranlsations 2016-11-14 10:06:39 -08:00
d82da1f877 updated localizations 2016-11-14 09:44:46 -08:00
94706adc40 0.5.85 2016-11-14 06:10:19 -08:00
79fb4e4ff7 fix missing radio strings 2016-11-14 06:07:19 -08:00
dae84afded add SPI pins 2016-11-14 10:12:35 +01:00
82d93a2b91 0.5.84 2016-11-13 22:10:34 +01:00
45cbbd342b fix naming 2016-11-13 22:09:57 +01:00
5c7779927c bumped to v0.5.83 2016-11-12 05:42:44 -08:00
df3d3b41ab 0.5.83 2016-11-12 05:21:03 -08:00
d691ebfd52 updated strings 2016-11-12 05:20:39 -08:00
a7bd9f6708 0.5.82 2016-11-11 15:25:33 -08:00
c3d3747cd8 Bump pxt-core to 0.5.72 2016-11-11 15:25:31 -08:00
7bc5488f25 updated translations 2016-11-11 15:25:18 -08:00
f27aa28f8e updated translations 2016-11-11 13:27:53 -08:00
12ccf21e28 adding missing strings 2016-11-11 10:56:45 -08:00
c557929fb2 0.5.81 2016-11-11 17:08:39 +01:00
2e58a31b07 update dependencies for motor fix in DAL 2016-11-11 17:01:53 +01:00
081a56550d 0.5.80 2016-11-11 06:49:28 -08:00
3d665d5505 Bump pxt-core to 0.5.68 2016-11-11 06:49:26 -08:00
f991733e04 0.5.79 2016-11-10 15:07:53 -08:00
020b7e9bbe Bump pxt-core to 0.5.67 2016-11-10 15:07:51 -08:00
f3bf46f691 0.5.78 2016-11-10 14:25:36 -08:00
c3bb56da0c 0.5.77 2016-11-10 14:22:00 -08:00
1f98257984 added missing files for pxtrequire 2016-11-10 14:15:55 -08:00
1cec654342 0.5.76 2016-11-10 14:01:30 -08:00
bb027ec75a Bump pxt-core to 0.5.66 2016-11-10 14:01:27 -08:00
ceeb366be5 removing outdated tests 2016-11-10 13:14:19 -08:00
d6cc95112c AnalogPin.P0 not supported 2016-11-10 13:08:45 -08:00
ce24e9d923 0.5.75 2016-11-10 21:22:25 +01:00
7ee5b4112b remove undefined pins 2016-11-10 21:20:48 +01:00
d903901de2 Merge branch 'pin-update' 2016-11-10 21:05:31 +01:00
c1025b8658 fix naming and pin selection 2016-11-10 21:00:03 +01:00
cdb9682a8b intermediate fix for accelerometer used in pxt 2016-11-10 20:45:40 +01:00
9d589971f5 0.5.74 2016-11-10 11:33:48 -08:00
c6807d67d8 0.5.73 2016-11-10 11:31:21 -08:00
05ff9282ac Bump pxt-core to 0.5.65 2016-11-10 11:31:19 -08:00
2825d09eae 0.5.72 2016-11-10 10:11:16 -08:00
15d4a594ae adding hover style on categories 2016-11-10 10:10:03 -08:00
a0b426bdf0 disable simulator crash, disable parts 2016-11-10 10:06:38 -08:00
580f1bf24e 0.5.71 2016-11-10 09:35:40 -08:00
29cc6eaded Bump pxt-core to 0.5.64 2016-11-10 09:35:36 -08:00
6671d1864c updated dal.d.ts 2016-11-10 09:13:25 -08:00
42d21dea28 fix pin name for SDA 2016-11-10 15:30:49 +01:00
c4e427c090 fix pins to be in sync with the naming in the simulator and on the board 2016-11-10 15:11:12 +01:00
d01ca8d565 0.5.70 2016-11-10 13:50:14 +01:00
9c3236de80 update motor support and add demo 2016-11-10 13:48:20 +01:00
51e64bd82d Merge remote-tracking branch 'origin/master' 2016-11-10 12:22:32 +01:00
572b4a74e4 Merge pull request #6 from Microsoft/mergemicrobit
Merge microbit
2016-11-09 15:16:23 -08:00
9774c9306a workaround missing PAGE_SIZE 2016-11-09 13:30:37 -08:00
1e2066726a merging microbit 2016-11-09 13:29:34 -08:00
0b144539f3 merging master 2016-11-09 13:20:18 -08:00
3a8bbfbd91 0.6.8 2016-11-09 05:32:09 -08:00
0b457d6a50 Bump pxt-core to 0.5.62 2016-11-09 05:32:08 -08:00
b6b18b7ceb 0.5.69 2016-11-09 05:14:51 -08:00
6de8e604f7 Bump pxt-core to 0.5.61 2016-11-09 05:14:49 -08:00
4f960f5585 0.6.7 2016-11-09 05:11:13 -08:00
5e62d5c30d Bump pxt-core to 0.5.61 2016-11-09 05:11:11 -08:00
e701d83dc5 Merge branch 'rev03-changes'
# Conflicts:
#	libs/core/motors.cpp
#	libs/core/music.cpp
#	package.json
2016-11-09 11:56:14 +01:00
f666d3375e remove parts that we don't need anymore 2016-11-09 11:53:34 +01:00
4aa2d129e9 Adding list of domains that need to be allowed for editor 2016-11-08 15:44:51 -08:00
09f4001c7a exposing programSize function 2016-11-08 10:17:25 -08:00
eae2f0436d 0.6.6 2016-11-08 08:57:34 -08:00
287c9da3bd Bump pxt-core to 0.5.59 2016-11-08 08:57:31 -08:00
056ec1bc96 0.6.5 2016-11-07 22:25:49 -08:00
16439bfca3 Bump pxt-core to 0.5.58 2016-11-07 22:25:45 -08:00
7117ba771e support for multiple simulated servos 2016-11-07 22:25:19 -08:00
633522c800 removing dangling file 2016-11-07 13:31:24 -08:00
3f94033c7d Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-11-07 13:30:53 -08:00
1bc00f476c Requirement for node version used is not correct (#304)
Consider referring to requirements for pxt to reduce time on updating all pxt dependants.
2016-11-07 13:26:19 -08:00
0269ffa5ae support for filesystem in simulator 2016-11-07 11:11:38 -08:00
981910fb0a 0.5.68 2016-11-07 10:59:05 -08:00
baa9a262fb removing uploaddoc step 2016-11-07 10:58:52 -08:00
fe1de4a423 0.5.67 2016-11-07 10:43:55 -08:00
8537061e79 Bump pxt-core to 0.5.54 2016-11-07 10:43:52 -08:00
c64225982e Merge pull request #302 from Microsoft/pr/firefoxtiltfix
Fix for accelerometer simulator not working in firefox.
2016-11-07 10:43:49 -08:00
f6b7467324 Fix for accelerometer simulator not working in firefox 2016-11-07 10:43:43 -08:00
36755400fd Fix for incorrect nav menu height, fixes #701 2016-11-07 10:40:45 -08:00
29eef560b0 whitespace 2016-11-07 10:33:22 -08:00
90e191c4ca 0.6.4 2016-11-07 10:17:20 -08:00
efd310f0b4 added afterProgramPage to C++ declarations 2016-11-07 10:17:03 -08:00
0a5c2e4df9 0.6.3 2016-11-07 09:52:34 -08:00
1d6eaf0370 Bump pxt-core to 0.5.54 2016-11-07 09:52:30 -08:00
b4b789422e Add afterProgramPage() for filesystem support 2016-11-07 16:04:15 +00:00
cf982d7c52 removing upload step 2016-11-06 20:38:53 -08:00
2dafe5d253 0.6.2 2016-11-06 20:30:31 -08:00
63422bf696 Bump pxt-core to 0.5.53 2016-11-06 20:30:27 -08:00
56dc8571b7 0.6.1 2016-11-06 19:54:26 -08:00
d9190369b7 bumped to 0.6 to reflect move to DAL rc5. 2016-11-06 19:53:44 -08:00
4cf7ec2da1 0.5.66 2016-11-05 06:44:03 -07:00
4b8e9f5715 Bump pxt-core to 0.5.51 2016-11-05 06:44:01 -07:00
ea4bc7f4e8 0.5.35 2016-11-05 06:18:11 -07:00
7aa136d01c Bump pxt-core to 0.5.51 2016-11-05 06:18:08 -07:00
4eeae7e239 0.5.34 2016-11-04 21:51:14 -07:00
11b6ba0862 Bump pxt-core to 0.5.50 2016-11-04 21:51:12 -07:00
349a385f97 Move templates to directly under libs/ (#303) 2016-11-04 18:32:13 -07:00
48afb52ef1 Fix for accelerometer simulator not working in firefox. Fixes Microsoft/pxt/#679 2016-11-04 15:39:57 -07:00
e5dc046fcc moving live to 0.5.33 2016-11-04 13:38:01 -07:00
7f7aa1c60b updated fr translations 2016-11-04 12:59:11 -07:00
584aaf8c6d updated translations 2016-11-04 12:54:39 -07:00
029b5cda2b 0.5.33 2016-11-04 11:42:16 -07:00
ed2f6d05ad Bump pxt-core to 0.5.49 2016-11-04 11:42:14 -07:00
26e20d75a4 Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-11-04 11:41:43 -07:00
31f5db32d1 Move hex cache (#291)
* hexcache is no longer generated at repo root, so remove it from package.json

* Modified templates to depend on local packages

* Adding bluetooth template for offline HEX cache

* Fix wrong package name in dependencies of bluetooth template

* Change package versions to * in templates
2016-11-04 11:38:00 -07:00
107fe2aefa enable package search 2016-11-04 11:25:05 -07:00
171f578b0b added coderdojo package 2016-11-04 11:07:07 -07:00
90756557f2 updated config 2016-11-04 10:32:29 -07:00
1e89d142ec updated packages config. 2016-11-04 10:14:28 -07:00
002f08ca37 adding empty target config 2016-11-04 10:12:21 -07:00
054501ace0 added reference 2016-11-04 08:18:43 -07:00
0e99bf0d9e 0.5.65 2016-11-03 16:51:35 -07:00
69bf34f773 Bump pxt-core to 0.5.48 2016-11-03 16:51:32 -07:00
980fbc9c1e 0.5.32 2016-11-03 15:56:38 -07:00
dab48cf42d Bump pxt-core to 0.5.48 2016-11-03 15:56:36 -07:00
652abe0892 Wallet (#301)
* adding images

* fixed image path

* half way through instructions

* updating maker instructions

* adding protection section

* renaming making -> make

* fixed link

* added coding section

* updated lessons

* fix broken links
2016-11-03 15:49:29 -07:00
781472e7ce 0.5.31 2016-11-03 09:51:14 -07:00
1e4197b4fa Bump pxt-core to 0.5.47 2016-11-03 09:51:12 -07:00
6ba50b6c17 0.5.64 2016-11-03 09:50:51 -07:00
ab5b6baf46 Bump pxt-core to 0.5.47 2016-11-03 09:50:49 -07:00
8ec20b87d7 exposing locs for all apis with jsdoc 2016-11-03 09:43:20 -07:00
dc3f6cf885 updated locs 2016-11-03 09:41:58 -07:00
3a6e132c7f updatd DAL file 2016-11-03 09:20:30 -07:00
3533e57cc3 updated locs files 2016-11-03 09:10:50 -07:00
c03fac2162 fixing typos 2016-11-03 08:50:02 -07:00
2138725a44 updated docs logo 2016-11-03 08:43:25 -07:00
e10bb1ce1d bumped live to v0.5.63 2016-11-03 06:56:20 -07:00
3bb03dcc1d 0.5.63 2016-11-03 06:45:59 -07:00
a45bf54cff Bump pxt-core to 0.5.45 2016-11-03 06:45:54 -07:00
75e53ddd61 updated translations 2016-11-03 06:45:45 -07:00
0590e74cc0 0.5.62 2016-11-02 22:49:26 -07:00
76edc1290c fixing card app logo 2016-11-02 22:48:34 -07:00
3b66827d8a 0.5.61 2016-11-02 22:35:21 -07:00
83bd1ed3e1 support for motor commands 2016-11-02 22:35:00 -07:00
41c7e88928 adding reference to files package 2016-11-02 16:48:59 -07:00
19f757e159 Upgrading to DAL 2.0rc5 (#300)
* basic skeleton for filesystem project

* updated to DAL rc5

* basic file operations

* support for basic file operations (append, remove)

* removing files project
2016-11-02 16:11:08 -07:00
fb222fd732 removing target specific meta (#299)
* updating favicon manifests

* use meta generated from target
2016-11-02 15:14:06 -07:00
07b07a5a3f 0.5.60 2016-11-02 15:13:35 -07:00
f46c23fb92 Bump pxt-core to 0.5.44 2016-11-02 15:13:30 -07:00
937bcc61ad 0.5.30 2016-11-02 15:07:50 -07:00
7d61e5fe7c Bump pxt-core to 0.5.44 2016-11-02 15:07:47 -07:00
773dae8fc8 0.5.29 2016-11-02 14:53:56 -07:00
511f399d90 Bump pxt-core to 0.5.43 2016-11-02 14:53:53 -07:00
633ce491af 0.5.28 2016-11-02 14:41:45 -07:00
8193c4790f Bump pxt-core to 0.5.42 2016-11-02 14:41:41 -07:00
21e64d01e3 updated addon for pxt.microbit.org 2016-11-02 14:23:08 -07:00
641d8fcb9b 0.5.27 2016-11-02 13:09:14 -07:00
84736554b9 0.5.26 2016-11-02 12:54:10 -07:00
e2c7579dd4 Bump pxt-core to 0.5.41 2016-11-02 12:53:53 -07:00
2e9ad0ad92 0.5.59 2016-11-02 11:35:21 -07:00
68cbb963fc Bump pxt-core to 0.5.41 2016-11-02 11:35:16 -07:00
1c1e960252 0.5.58 2016-11-02 08:20:02 -07:00
077ecaab87 Bump pxt-core to 0.5.38 2016-11-02 08:19:58 -07:00
3111960ecf don't override meta 2016-11-02 08:19:51 -07:00
2f203d68d1 0.5.57 2016-11-01 21:51:37 -07:00
aeb3b6f864 Bump pxt-core to 0.5.37 2016-11-01 21:51:34 -07:00
e0cf776591 0.5.25 2016-11-01 21:48:42 -07:00
da38ca2234 Bump pxt-core to 0.5.37 2016-11-01 21:48:40 -07:00
682ae92a08 updated docs with @homeurl@ 2016-11-01 21:48:11 -07:00
ed8aaf8bda Updating to use pxt.less 2016-11-01 17:49:39 -07:00
f5f36d9cca Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-11-01 17:48:34 -07:00
19775e307a Updating to use pxt.less 2016-11-01 17:48:29 -07:00
89406330cf rename micro:bit to @boardname@ 2016-11-01 17:44:37 -07:00
9bc1e38345 0.5.24 2016-11-01 10:42:57 -07:00
85d5073fbb Bump pxt-core to 0.5.35 2016-11-01 10:42:53 -07:00
d76d92e041 inserting macros instead of hard coded board names 2016-11-01 10:42:42 -07:00
6799721c9b 0.5.23 2016-11-01 09:27:43 -07:00
c191cdf7ec updated locs 2016-11-01 09:26:03 -07:00
16cf45aa7c updated localization files 2016-11-01 09:23:04 -07:00
94e72784b9 merging microbit changes 2016-11-01 08:35:45 -07:00
4963bf776a basic servo simulation (#297) 2016-11-01 08:16:03 -07:00
237c5c019b 0.5.22 2016-11-01 07:41:40 -07:00
cf37baa337 Bump pxt-core to 0.5.34 2016-11-01 07:41:36 -07:00
67eb1d3b19 0.5.56 2016-10-31 22:34:52 -07:00
6a13b9737e Bump pxt-core to 0.5.33 2016-10-31 22:34:50 -07:00
1ec7e67fb0 0.5.55 2016-10-31 11:36:57 -07:00
c3253e24fc Bump pxt-core to 0.5.31 2016-10-31 11:36:55 -07:00
326cd7d0c3 bumped to v0.5.54 2016-10-30 23:48:01 -07:00
804cc8c091 0.5.54 2016-10-30 23:41:55 -07:00
64ff568597 enable translated blocks 2016-10-30 23:41:18 -07:00
4196ba6632 bumped to v0.5.53 2016-10-30 22:58:48 -07:00
26626d2a2a 0.5.53 2016-10-30 22:52:35 -07:00
b70a2fc096 Bump pxt-core to 0.5.30 2016-10-30 22:52:32 -07:00
9791a02c7e hide docs 2016-10-30 22:52:16 -07:00
89ceeefc32 0.5.52 2016-10-30 22:23:02 -07:00
91235d2377 Bump pxt-core to 0.5.29 2016-10-30 22:23:00 -07:00
a805d7b8a8 updated ref version 2016-10-28 16:44:22 -07:00
89fdbcdc4f 0.5.51 2016-10-28 16:14:51 -07:00
7303a1235f bumped to v0.5.21 2016-10-28 15:51:26 -07:00
38ee5efdd4 0.5.21 2016-10-28 15:44:02 -07:00
474d5bb762 turning off streams 2016-10-28 15:43:43 -07:00
f045942297 Project templates (#295)
Moved default projects from pxtarget.json to libs/templates/
2016-10-28 14:12:25 -07:00
92d1d2ffc3 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-28 14:08:22 -07:00
82c9af836f bumped to 0.5.50 2016-10-28 14:08:14 -07:00
da90401fe6 0.5.50 2016-10-28 14:05:33 -07:00
315a12dd8b Bump pxt-core to 0.5.28 2016-10-28 14:05:32 -07:00
7936517a03 0.5.20 2016-10-28 14:05:18 -07:00
ee60396e35 Bump pxt-core to 0.5.28 2016-10-28 14:05:17 -07:00
72ec2d617e 0.5.49 2016-10-28 13:53:46 -07:00
4d9ae63831 Bump pxt-core to 0.5.27 2016-10-28 13:53:41 -07:00
3eab21cff1 udpated icons 2016-10-28 13:52:17 -07:00
5a37385d14 0.5.48 2016-10-28 13:31:48 -07:00
9fa412ff6f Bump pxt-core to 0.5.26 2016-10-28 13:31:43 -07:00
307d25ce7d 0.5.19 2016-10-28 13:21:39 -07:00
ec48474231 Bump pxt-core to 0.5.26 2016-10-28 13:21:38 -07:00
3f7fbb70ba Removing blockly trash icon 2016-10-28 11:27:26 -07:00
524bcee5ed cleanup bundled locals in core package 2016-10-28 11:20:41 -07:00
20189a709b Using Google font: Roboto 2016-10-28 11:15:19 -07:00
111b321722 0.5.47 2016-10-28 10:41:47 -07:00
b8fe8f9294 Bump pxt-core to 0.5.24 2016-10-28 10:41:45 -07:00
83cfd5738f 0.5.18 2016-10-28 10:41:21 -07:00
83b8ba1102 Bump pxt-core to 0.5.24 2016-10-28 10:41:19 -07:00
2169cb044c 0.5.17 2016-10-28 08:53:05 -07:00
7b478c4c38 update ref version 2016-10-28 17:47:48 +02:00
a68e1a611d 0.5.46 2016-10-28 17:47:33 +02:00
b3b2944b46 add dnd picture 2016-10-28 17:39:57 +02:00
76adc3c00a added led.enable (#294)
* added led.enable

* fixed simulator support for led.enable
2016-10-28 08:34:04 -07:00
c809ee4fdf 0.5.45 2016-10-28 00:36:26 -07:00
8e67e69602 Bump pxt-core to 0.5.23 2016-10-28 00:36:23 -07:00
c6e38bd7a9 0.5.16 2016-10-28 00:19:09 -07:00
c60a4cb359 Bump pxt-core to 0.5.23 2016-10-28 00:19:07 -07:00
0b508e37b1 0.5.44 2016-10-27 23:21:21 -07:00
e1a3aca9f8 Removing blockly custom media folder 2016-10-27 23:21:05 -07:00
bbe93ae9a2 UI changes: fixing mobile view. 2016-10-27 18:43:09 -07:00
6fd18b4f4c 0.5.43 2016-10-27 16:20:39 -07:00
b511537348 Bump pxt-core to 0.5.21 2016-10-27 16:20:37 -07:00
749ba6b984 UI changes to match the calliope design. 2016-10-27 16:15:44 -07:00
298382c19f UI theming changes. 2016-10-27 16:12:53 -07:00
ef849b645b 0.5.15 2016-10-27 16:06:07 -07:00
78e8c9f176 Bump pxt-core to 0.5.20 2016-10-27 16:06:05 -07:00
57aadd0b27 0.5.14 2016-10-27 15:54:16 -07:00
e60c163b08 Bump pxt-core to 0.5.19 2016-10-27 15:54:11 -07:00
95e4c609a4 Rename the parameters for the sendValue block (#293) 2016-10-27 14:48:22 -07:00
e571bec213 0.5.42 2016-10-27 14:30:07 -07:00
1ad90eda81 Bump pxt-core to 0.5.18 2016-10-27 14:30:05 -07:00
0c604498d3 0.5.41 2016-10-27 13:48:27 -07:00
a8ec408f96 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-27 13:47:58 -07:00
40fe1b4616 fix simulator support for music 2016-10-27 13:47:39 -07:00
30fd978064 fixed interface function names, add sound functionality 2016-10-27 21:19:03 +02:00
0c26d74c05 try to use uBit.soundmotor sound functions 2016-10-27 21:19:03 +02:00
0e4d555eb2 0.5.40 2016-10-27 21:18:57 +02:00
34c608ba75 add first pictures of calliope 2016-10-27 21:18:57 +02:00
007cf55d7f 0.5.39 2016-10-27 21:18:57 +02:00
d3b10aa89e Bump pxt-core to 0.5.17 2016-10-27 21:18:57 +02:00
5dc99388b3 0.5.38 2016-10-27 21:18:57 +02:00
cbe25da154 rev. 0.2 sound patches 2016-10-27 21:18:56 +02:00
e52da19925 0.5.40 2016-10-27 20:50:10 +02:00
d558f70118 add first pictures of calliope 2016-10-27 20:47:09 +02:00
8fca50e907 0.5.39 2016-10-27 11:31:10 -07:00
8c4abe979b Bump pxt-core to 0.5.17 2016-10-27 11:31:08 -07:00
f2e1bc0168 0.5.13 2016-10-27 11:20:53 -07:00
5c818980ed Bump pxt-core to 0.5.17 2016-10-27 11:20:51 -07:00
172aa6a4d7 updated translated docs 2016-10-27 11:15:35 -07:00
d4fa9dab1b 0.5.38 2016-10-27 19:49:35 +02:00
955b67b6b8 rev. 0.2 sound patches 2016-10-27 19:48:42 +02:00
abf7d48bfd added music function 2016-10-27 17:58:36 +02:00
96d5dc2064 fixed interface function names, add sound functionality 2016-10-27 17:44:38 +02:00
e0735188fa try to use uBit.soundmotor sound functions 2016-10-27 15:51:42 +02:00
c5b9d0876a 0.5.12 2016-10-26 21:48:17 -07:00
4716d06fe6 Bump pxt-core to 0.5.16 2016-10-26 21:48:14 -07:00
a2aaed2923 0.5.11 2016-10-26 18:18:20 -07:00
38aa6439a2 Bump pxt-core to 0.5.15 2016-10-26 18:18:18 -07:00
a4ba24d6ef add sound support using the on-board speaker 2016-10-26 20:52:40 +02:00
d6d64f3edb fix touch pin for rev 0.3 board 2016-10-26 12:54:21 +02:00
f078d59bb5 Remove testing file 2016-10-26 11:45:15 +01:00
dffbe5dcb4 Testing cdn fixes 2016-10-26 10:15:05 +01:00
d0821710f6 0.5.10 2016-10-25 16:46:14 -07:00
2291f8b899 Bump pxt-core to 0.5.12 2016-10-25 16:46:12 -07:00
2bc5db517e Renaming the string in onDataPacketReceived and updating docs (#292) 2016-10-25 16:39:13 -07:00
f191d9033d Updating radio JSON writing API (#290) 2016-10-25 16:38:01 -07:00
739be09ac9 Bumping main version to 0.5.37 with fixed icons 2016-10-25 19:53:38 +01:00
7d912110f4 Bumping main version to 0.5.9 with fixed icons 2016-10-25 19:53:11 +01:00
5877adc595 0.5.37 2016-10-25 18:55:41 +01:00
0380f4f0d0 Bump pxt-core to 0.5.11 2016-10-25 18:55:40 +01:00
ae882a0107 0.5.9 2016-10-25 18:55:10 +01:00
367e80cb77 Bump pxt-core to 0.5.11 2016-10-25 18:55:09 +01:00
c3865afe8c removing references to older gesture events 2016-10-25 09:46:20 -07:00
6b9b636ae6 moving master to v.0.5.8 2016-10-25 08:19:19 -07:00
9a20841c6e 0.5.8 2016-10-25 06:42:40 -07:00
9e95f1a442 Bump pxt-core to 0.5.10 2016-10-25 06:42:39 -07:00
c6ce36065e added blocks / TouchDevelop .hex files 2016-10-25 06:42:20 -07:00
13a4b03e9a 0.5.36 2016-10-24 23:18:56 -07:00
4b21d51769 Bump pxt-core to 0.5.9 2016-10-24 23:18:52 -07:00
e7aed1d162 fixed sounds in simulator 2016-10-24 23:17:16 -07:00
27f28032fb 0.5.7 2016-10-24 23:12:26 -07:00
2dc9cffa99 Bump pxt-core to 0.5.9 2016-10-24 23:12:24 -07:00
376512f704 0.5.6 2016-10-24 22:47:12 -07:00
3813fba899 Bump pxt-core to 0.5.8 2016-10-24 22:47:10 -07:00
60e71e3e35 0.5.35 2016-10-24 16:39:57 -07:00
b003d89061 Bump pxt-core to 0.5.7 2016-10-24 16:39:55 -07:00
84816f4f39 0.5.5 2016-10-24 16:39:21 -07:00
2b095dfe21 Bump pxt-core to 0.5.7 2016-10-24 16:39:18 -07:00
2e3cdee2a2 added deprecated radio api test 2016-10-24 16:34:33 -07:00
ec404e5887 Deprecating old radio APIs and fixing docs (#289) 2016-10-24 16:30:21 -07:00
ba69563bf4 Adding theming support to pxt-microbit. (#288) 2016-10-24 14:55:21 -07:00
a5eb93d3e1 Updating theme.config to use the pxt theme. 2016-10-24 14:07:20 -07:00
224cb446e4 0.5.34 2016-10-24 13:51:08 -07:00
62b3d7504f Bump pxt-core to 0.5.4 2016-10-24 13:51:06 -07:00
cc6594921f 0.5.4 2016-10-24 13:50:41 -07:00
bf1269b82e Bump pxt-core to 0.5.4 2016-10-24 13:50:39 -07:00
c937cba17e merging pxt-microbit updates 2016-10-24 13:00:39 -07:00
79c89b832a New Radio API (#287)
* Adding radio API for receiving a packet

* More new radio API changes

* renaming some properties

* Redoing radio packet parsing and updating new callback api
2016-10-24 12:55:44 -07:00
0765159633 0.5.33 2016-10-24 20:53:32 +01:00
b14a025b14 Bump pxt-core to 0.5.3 2016-10-24 20:53:32 +01:00
3ccc8b7db3 0.5.3 2016-10-24 12:52:33 -07:00
7c8bae3cf0 0.5.2 2016-10-24 20:51:33 +01:00
000f784011 Bump pxt-core to 0.5.3 2016-10-24 20:51:33 +01:00
d85446d34d Support for offline hex cache (#282) 2016-10-24 12:32:05 -07:00
74f8cc7b2e 0.5.32 2016-10-24 10:28:24 -07:00
cf778686c3 Merging microbit/master 2016-10-24 10:27:48 -07:00
99bee9e796 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-24 10:14:43 -07:00
cb61c1a712 Bump main version to 0.5.31 with fixed icons 2016-10-24 18:01:45 +01:00
fdf3d1b66c 0.5.31 2016-10-24 17:39:33 +01:00
25ddbf9ffd Bump pxt-core to 0.5.2 2016-10-24 17:39:32 +01:00
578f971d26 Add tagged release names 2016-10-24 16:59:46 +01:00
06641d4e5c Beta is latest tagged releases 2016-10-24 16:58:12 +01:00
a705c4882b Add initial release pointers 2016-10-24 16:48:03 +01:00
b36ffaf29c 0.5.30 2016-10-24 16:32:56 +01:00
bff088fced Bump pxt-core to 0.5.1 2016-10-24 16:32:56 +01:00
784565b24e 0.5.1 2016-10-24 16:31:48 +01:00
b59e4effff Bump pxt-core to 0.5.1 2016-10-24 16:31:48 +01:00
2db2741b08 Bumping to 0.5 (to ~sync with pxt) 2016-10-24 16:30:56 +01:00
66a46e4046 fixing links in docs 2016-10-22 23:04:08 -07:00
2f11d603e7 Added a range of original TouchDevelop scripts converted to .ts for tests (#283) 2016-10-22 21:32:57 -07:00
8089fe262e 0.4.64 2016-10-22 21:29:43 -07:00
7d7d13f3ab Bump pxt-core to 0.4.74 2016-10-22 21:29:41 -07:00
bd1536132d fixing references / snippets
cleanup "snippets" compilation state
2016-10-22 21:29:31 -07:00
fcefe1ed36 Fixing a few typos 2016-10-22 20:34:18 -07:00
748581d76d 0.4.63 2016-10-22 20:31:17 -07:00
f21f9e6e88 Bump pxt-core to 0.4.73 2016-10-22 20:31:15 -07:00
3f1817037e Added a new project, the magic button trick (#284)
* adding the 'magic button trick' project

* tweaking text and fixing spelling mistakes

* adding vscode temp files to gitignore

* updated after feedback

* removing vscode temp files

* missed two vars

* deleting vscode temp file
2016-10-22 19:53:48 -07:00
4bcba9b9e5 0.4.62 2016-10-21 14:51:39 -07:00
b3b836d77c Bump pxt-core to 0.4.72 2016-10-21 14:50:55 -07:00
a2cb2c2ed0 Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-10-21 14:46:23 -07:00
44e2ffc874 Merge pull request #281 from Microsoft/musicfix
Fixing music doc issues
2016-10-21 14:21:19 -07:00
64b68c7439 updated faq to point to support 2016-10-21 11:45:29 -07:00
198b24c6a4 use secure support link 2016-10-21 11:42:29 -07:00
a90a43d719 updated logo 2016-10-21 11:12:03 -07:00
f9d138cb42 migrating to pxt.microbit.org settings 2016-10-21 10:49:04 -07:00
f2c87db3ed using default analytics settings 2016-10-21 10:23:23 -07:00
13089f92a8 using default tracking settings 2016-10-21 09:56:28 -07:00
0b1b312e76 Fixing music doc issues 2016-10-21 08:48:43 -07:00
958ff2ef40 0.4.61 2016-10-20 22:45:57 -07:00
eaf982903f Bump pxt-core to 0.4.71 2016-10-20 22:45:50 -07:00
8c15af11db 0.5.29 2016-10-20 20:16:52 -07:00
35e414764f missing tools 2016-10-20 20:14:25 -07:00
333659c320 0.5.28 2016-10-20 20:12:03 -07:00
8c161583eb Bump pxt-core to 0.4.71 2016-10-20 20:12:02 -07:00
b20e185bf2 parameterize download button color 2016-10-20 19:36:00 -07:00
299b595581 added custom theme style 2016-10-20 19:29:10 -07:00
65433216e6 adding semantic ui files 2016-10-20 16:40:39 -07:00
cbfbcd080a 0.4.60 2016-10-20 15:09:13 -07:00
9c389e290e Bump pxt-core to 0.4.70 2016-10-20 15:09:11 -07:00
4dd26f854c 0.4.59 2016-10-20 12:18:39 -07:00
66444b886c Bump pxt-core to 0.4.69 2016-10-20 12:18:37 -07:00
9ea2081e89 0.5.27 2016-10-20 11:48:48 -07:00
808e5fa17b Bump pxt-core to 0.4.68 2016-10-20 11:48:46 -07:00
20d967a230 removing .ico file 2016-10-20 11:30:04 -07:00
c1e5419e45 updated icons 2016-10-20 11:26:44 -07:00
0c01fdb30b adding favicon configuration file 2016-10-20 11:09:34 -07:00
75c2ccdea9 0.4.58 2016-10-20 10:12:33 -07:00
2dff5c1140 Bump pxt-core to 0.4.68 2016-10-20 10:12:31 -07:00
0ab28076f3 removing windows 10 client, updated urls in chrome/macos/uploaders 2016-10-20 10:01:02 -07:00
27f5411404 0.5.26 2016-10-20 08:29:16 -07:00
f53eab0539 Bump pxt-core to 0.4.67 2016-10-20 08:29:11 -07:00
8030f27fb7 0.4.57 2016-10-19 22:47:10 -07:00
33c4b2b9b7 Bump pxt-core to 0.4.67 2016-10-19 22:47:07 -07:00
2463faf8d6 updated tracking info 2016-10-19 22:46:44 -07:00
6db78761c4 0.4.56 2016-10-19 16:53:30 -07:00
a0893cdaff Bump pxt-core to 0.4.66 2016-10-19 16:53:25 -07:00
c6fa997f02 updated docs from codethemicrobit to pxt.microbit.org 2016-10-19 16:49:05 -07:00
76d236e4d9 updated loc files 2016-10-19 10:45:39 -07:00
445fe12629 0.5.25 2016-10-19 19:11:13 +02:00
ddd6e90c6d Merge remote-tracking branch 'origin/master' 2016-10-19 19:08:52 +02:00
fd14ba6ff1 fix touch pins, add test for buttons and pins, update dependency 2016-10-19 19:08:41 +02:00
28a8f21d40 merging ble changes 2016-10-18 21:55:02 -07:00
0f7323f2da 0.4.55 2016-10-18 21:52:38 -07:00
23d30484d4 updated docs page 2016-10-18 21:52:10 -07:00
6ad59e04a6 fixed uart issues 2016-10-18 21:47:54 -07:00
ae5d5c74a7 better support for BLE UART and alignment with serial blocks. (#276)
* aligning uart apis with serial

* reorganizing serial/bluetooth blocks

* Autoupdate configuration for UART. (#279)

* Autoupdate configuration for UART.

* removing serial autoupdates.
2016-10-18 21:36:42 -07:00
3f626105cd 0.5.24 2016-10-18 21:07:02 -07:00
d9ff9c4800 Bump pxt-core to 0.4.65 2016-10-18 21:07:00 -07:00
75baca4a97 0.4.54 2016-10-18 21:03:36 -07:00
58ae4945cb Bump pxt-core to 0.4.65 2016-10-18 21:03:34 -07:00
fba37d96b2 updated localization help 2016-10-18 13:19:46 -07:00
31998fec05 0.5.23 2016-10-18 13:18:45 -07:00
342aa3ca32 Bump pxt-core to 0.4.63 2016-10-18 13:18:43 -07:00
5eb8704382 0.4.53 2016-10-18 13:18:20 -07:00
81b66664ef Bump pxt-core to 0.4.63 2016-10-18 13:18:19 -07:00
135aaf4855 0.4.52 2016-10-18 09:08:25 -07:00
9b599b6242 0.5.22 2016-10-18 16:56:58 +02:00
e5e63c548f update dal defines 2016-10-18 16:56:42 +02:00
f3eb9a988f update dependencies 2016-10-18 16:56:15 +02:00
e7e2ff7752 gesture updates 2016-10-18 16:40:53 +02:00
f10ac93268 add handling of gestures (we only have 2g, 6g ... no 3g), add mac/idea ignored files 2016-10-18 15:44:49 +02:00
47f46553e0 fix name of board 2016-10-18 15:43:52 +02:00
3158e95cde 0.5.21 2016-10-17 21:39:08 -07:00
854029fe33 updated board name 2016-10-17 21:38:58 -07:00
1b379bddd0 0.5.20 2016-10-17 21:35:07 -07:00
9495da9a53 0.5.19 2016-10-17 21:25:11 -07:00
128b3f2f51 Bump pxt-core to 0.4.62 2016-10-17 21:25:08 -07:00
1fbf257619 0.4.51 2016-10-17 21:12:33 -07:00
932c01f394 Bump pxt-core to 0.4.62 2016-10-17 21:12:30 -07:00
c3b2b99d7c 0.4.50 2016-10-17 16:45:20 -07:00
ec910cb10f Bump pxt-core to 0.4.60 2016-10-17 16:45:17 -07:00
a19d1c848b renaming board name 2016-10-17 16:18:04 -07:00
a331a017b8 merged microbit changes 2016-10-17 13:36:54 -07:00
790b9f557a renaming translation files 2016-10-17 13:33:27 -07:00
0b469f69b6 Fix i18n not working after 277d5a7 (#277)
* Fix i18n not working after 277d5a7

The translation strings file in "core" package should have file names
"core-strings.json" or "core-jsdoc-strings.json".

* Enable ja translation

Rename "core-strings.json" to "core-jsdoc-strings.json".
Add new "core-strings.json" as a copy of the template.
Add two lines for the files in "pxt.json".
2016-10-17 11:13:38 -07:00
5cce86ec7e 0.5.18 2016-10-17 10:54:19 -07:00
65e01dc0df Bump pxt-core to 0.4.59 2016-10-17 10:54:17 -07:00
1a3c31c9f3 Deploy no longer throws when no drives found (#269)
pxt deploy no longer throws when no drives found
2016-10-17 07:39:29 -07:00
7aeb216462 0.5.17 2016-10-16 20:26:19 -07:00
543659b0e8 specifying pin positions 2016-10-16 20:25:55 -07:00
a2b5ff68af 0.5.16 2016-10-16 20:09:30 -07:00
b968d3b1de fixing simulator in IE11 2016-10-16 20:09:13 -07:00
4dbebe3e15 fixing logo in IE11 2016-10-16 09:28:30 -07:00
3b95fede48 optimizing logo 2016-10-16 09:19:40 -07:00
5d4bd77bf4 0.4.49 2016-10-14 22:57:42 -07:00
c83d7e9f07 Bump pxt-core to 0.4.58 2016-10-14 22:57:35 -07:00
971faed80a 0.5.15 2016-10-14 21:56:38 -07:00
02a58caf7a Bump pxt-core to 0.4.58 2016-10-14 21:56:37 -07:00
912e2e6159 enabling inverted menu 2016-10-14 11:32:00 -07:00
efee05c7f5 0.4.48 2016-10-14 11:30:47 -07:00
cc9ab86181 Bump pxt-core to 0.4.57 2016-10-14 11:30:41 -07:00
ef8d7185ee adding lessons to create circuit using aluminium foil 2016-10-13 12:52:47 -07:00
b0392da8b1 Fix indentation of showLeds in a couple of projects. 2016-10-13 11:32:25 -07:00
c817f9e3ff re-enabling sharing after bug in share-editor has been fixed. 2016-10-13 10:55:52 -07:00
5f78f98f94 0.4.47 2016-10-12 23:52:11 -07:00
395b6184b9 Bump pxt-core to 0.4.55 2016-10-12 23:52:09 -07:00
3274964a11 0.4.46 2016-10-12 04:49:42 -07:00
f5e8b35df4 Bump pxt-core to 0.4.54 2016-10-12 04:49:40 -07:00
996073728c 0.4.45 2016-10-12 04:02:55 -07:00
1e964ba1ea Bump pxt-core to 0.4.53 2016-10-12 04:02:53 -07:00
716 changed files with 33818 additions and 3527 deletions

7
.gitignore vendored
View File

@ -16,6 +16,7 @@ clients/win10/*.opendb
clients/**/bin/**
clients/**/obj/**
clients/electron/projects
hexcache
*.user
*.sw?
@ -24,3 +25,9 @@ clients/electron/projects
*.db
*.suo
*.log
.DS_Store
.idea
*.iml
.vscode/.BROWSE.VC.DB-shm
.vscode/.BROWSE.VC.DB-wal

View File

@ -4,7 +4,6 @@ node_js:
script:
- "node node_modules/pxt-core/built/pxt.js travis"
- "node node_modules/pxt-core/built/pxt.js testdir tests"
- "node node_modules/pxt-core/built/pxt.js uploaddoc"
sudo: false
notifications:
email:

26
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,26 @@
# Contributing Code
PXT 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.
PXT 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 in PXT, 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 PXT.
## 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.txt Normal file
View File

@ -0,0 +1,25 @@
PXT - Programming Experience Toolkit
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.

View File

@ -15,7 +15,7 @@ The local server allows to run the editor and the documentation from your comput
The following commands are a 1-time setup after synching the repo on your machine.
* if not yet installed, install [Node.js 4.4.5 or higher](https://nodejs.org/en/download/)
* See requirements for [pxt](https://github.com/Microsoft/pxt)
* [clone this repo](https://help.github.com/articles/cloning-a-repository/) to your computer and go in the project folder
```
git clone https://github.com/microsoft/pxt-calliope

View File

@ -1,4 +1,3 @@
///<reference path='typings/browser.d.ts'/>
var connections = [];
// A list of "ports", i.e. connected clients (such as web pages). Multiple web
// pages can connect to our service: they all receive the same data.
@ -41,7 +40,7 @@ function findNewDevices() {
function main() {
// Register new clients in the [ports] global variable.
chrome.runtime.onConnectExternal.addListener(function (port) {
if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit)$/.test(port.name)) {
if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit|pxt.microbit.org)$/.test(port.name)) {
ports.push(port);
port.onDisconnect.addListener(function () {
ports = ports.filter(function (x) { return x != port; });

View File

@ -61,7 +61,7 @@ function findNewDevices() {
function main() {
// Register new clients in the [ports] global variable.
chrome.runtime.onConnectExternal.addListener(function (port) {
if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit)$/.test(port.name)) {
if (/^(micro:bit|touchdevelop|yelm|pxt|codemicrobit|codethemicrobit|pxt.microbit.org)$/.test(port.name)) {
ports.push(port);
port.onDisconnect.addListener(function () {
ports = ports.filter(function (x) { return x != port });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -6,13 +6,13 @@
},
"manifest_version": 2,
"name": "code the micro:bit",
"version": "0.6.0",
"name": "pxt.microbit.org",
"version": "0.7.0",
"author": "Microsoft Corporation",
"short_name": "code the micro:bit",
"short_name": "pxt.microbit.org",
"description": "Extension for https://codethemicrobit.com.",
"homepage_url": "https://codethemicrobit.com",
"description": "Extension for https://pxt.microbit.org.",
"homepage_url": "https://pxt.microbit.org",
"offline_enabled": "true",
"icons": {
"48": "logo48.png",
@ -25,6 +25,6 @@
],
"externally_connectable": {
"matches": [ "*://localhost/*", "https://codethemicrobit.com/*", "https://*.codethemicrobit.com/*" ]
"matches": [ "*://localhost/*", "https://pxt.microbit.org/*", "https://*.microbit.org/*" ]
}
}

View File

@ -124,7 +124,7 @@
}
- (void)launchEditor:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://codethemicrobit.com/"]];
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://pxt.microbit.org/"]];
}
@end

View File

@ -3,10 +3,10 @@
![](Microbit Uploader/Assets.xcassets/AppIcon.appiconset/icon_256x256.png)
This project is a clone of the [Windows
uploader](https://codethemicrobit.com/uploader), but for OS X. Once launched,
uploader](https://pxt.microbit.org/uploader), but for OS X. Once launched,
the app runs in your menu bar and will automatically deploy any HEX files to
your `micro:bit`. Like the Windows version, it is compatible with any browser
that can run [codethemicrobit.com](http://codethemicrobit.com).
that can run [pxt.microbit.org](http://pxt.microbit.org).
## Install the built version

View File

@ -1,48 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "m.pxt.io", "app\m.pxt.io.jsproj", "{39122940-AB16-4CD4-A0CE-79A3EB863ECF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.ActiveCfg = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.Build.0 = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.Deploy.0 = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.ActiveCfg = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.Build.0 = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.Deploy.0 = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.ActiveCfg = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.Build.0 = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.Deploy.0 = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.Build.0 = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.Deploy.0 = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.ActiveCfg = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.Build.0 = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.Deploy.0 = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.ActiveCfg = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.Build.0 = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.Deploy.0 = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.ActiveCfg = Release|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.Build.0 = Release|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -1 +0,0 @@
MainPackage=C:\gh\pxt-microbit\win10\app\bin\Debug\m.pxt.io_0.1.4.0_AnyCPU_Debug.appx

View File

@ -1,85 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x86">
<Configuration>Debug</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x86">
<Configuration>Release</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>39122940-ab16-4cd4-a0ce-79a3eb863ecf</ProjectGuid>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0'">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
<PropertyGroup>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>$(VersionNumberMajor).$(VersionNumberMinor)</MinimumVisualStudioVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<PackageCertificateKeyFile>pxtwinapp_TemporaryKey.pfx</PackageCertificateKeyFile>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>neutral</AppxBundlePlatforms>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<Content Include="msapp-error.js" />
<Content Include="msapp-error.css" />
<Content Include="msapp-error.html" />
<Content Include="images\LockScreenLogo.scale-200.png" />
<Content Include="images\SplashScreen.scale-200.png" />
<Content Include="images\Square150x150Logo.scale-200.png" />
<Content Include="images\Square44x44Logo.scale-200.png" />
<Content Include="images\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="images\StoreLogo.png" />
<Content Include="images\Wide310x150Logo.scale-200.png" />
<None Include="pxtwinapp_TemporaryKey.pfx" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
<!-- To modify your build process, add your task inside one of the targets below then uncomment
that target and the DisableFastUpToDateCheck PropertyGroup.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<PropertyGroup>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
-->
</Project>

View File

@ -1,48 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "codethemicrobitapp", "codethemicrobitapp.jsproj", "{39122940-AB16-4CD4-A0CE-79A3EB863ECF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.ActiveCfg = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.Build.0 = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|ARM.Deploy.0 = Debug|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.ActiveCfg = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.Build.0 = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x64.Deploy.0 = Debug|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.ActiveCfg = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.Build.0 = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Debug|x86.Deploy.0 = Debug|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.Build.0 = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|Any CPU.Deploy.0 = Release|Any CPU
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.ActiveCfg = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.Build.0 = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|ARM.Deploy.0 = Release|ARM
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.ActiveCfg = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.Build.0 = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x64.Deploy.0 = Release|x64
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.ActiveCfg = Release|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.Build.0 = Release|x86
{39122940-AB16-4CD4-A0CE-79A3EB863ECF}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -1,17 +0,0 @@
body {
margin: 10px;
}
.tip {
font-size: 90%;
padding-left: 20px;
}
.paramName {
font-size: 100%;
color: black;
}
.paramValue {
color: black;
}

View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Navigation Error</title>
<link href="msapp-error.css" rel="stylesheet" type="text/css"/>
<script src="msapp-error.js" type="text/javascript"></script>
</head>
<body>
<h1>Navigation Error</h1>
<div id="failureUrl" class="param">
<span>-</span><span class="paramName">failureUrl</span><span>=</span>
<span id="failureUrlValue" class="paramValue"></span>
<span class="tip">(indicates the url where the error occurred)</span><br/>
</div><br/>
<div id="httpStatus" class="param">
<span>-</span><span class="paramName">httpStatus</span><span>=</span>
<span id="httpStatusValue" class="paramValue"></span>
<span class="tip">(available when the error has an http status code)</span><br/>
</div><br/>
<div id="failureName">
<span>-</span><span class="paramName">failureName</span><span>=</span>
<span id="failureNameValue" class="paramValue"></span>
<span class="tip">(available only when the error does not have a http status code)</span><br/>
</div>
</body>
</html>

View File

@ -1,22 +0,0 @@
(function () {
var validParameterNames = [ "httpStatus", "failureName", "failureUrl" ];
function parseQueryParameters() {
var query = location.search.slice(1);
return query.split("&").reduce(function (queryParameters, rawPair) {
var pair = rawPair.split("=").map(decodeURIComponent);
queryParameters[pair[0]] = pair[1];
return queryParameters;
}, {});
}
function initialize() {
var queryParameters = parseQueryParameters();
validParameterNames.forEach(function (parameterName) {
var parameterValue = queryParameters[parameterName] || "N/A";
document.getElementById(parameterName + "Value").textContent = parameterValue;
});
}
document.addEventListener("DOMContentLoaded", initialize);
}());

View File

@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="39122940-ab16-4cd4-a0ce-79a3eb863ecf" Version="0.1.5.0" Publisher="CN=jhalleux" />
<mp:PhoneIdentity PhoneProductId="39122940-ab16-4cd4-a0ce-79a3eb863ecf" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>codethemicrobit</DisplayName>
<PublisherDisplayName>Microsoft</PublisherDisplayName>
<Logo>images\storelogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" StartPage="https://codethemicrobit.com">
<uap:ApplicationContentUriRules>
<uap:Rule Match="https://m.pxt.io/" Type="include" WindowsRuntimeAccess="all" />
<uap:Rule Match="https://codemicrobit.com/" Type="include" WindowsRuntimeAccess="all" />
<uap:Rule Match="https://codethemicrobit.com/" Type="include" WindowsRuntimeAccess="all" />
</uap:ApplicationContentUriRules>
<uap:VisualElements DisplayName="code the micro:bit" Description="A code editor for the BBC micro:bit with Blocks or Javascript." BackgroundColor="white" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="images\Wide310x150Logo.png" ShortName="code the micro:bit">
</uap:DefaultTile>
<uap:SplashScreen Image="images\splashscreen.png" />
</uap:VisualElements>
<Extensions>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="microbithex">
<uap:DisplayName>BBC micro:bit binary file</uap:DisplayName>
<uap:SupportedFileTypes>
<uap:FileType ContentType="application/x-microbit-hex">.hex</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<uap:Capability Name="removableStorage" />
<DeviceCapability Name="bluetooth" />
<DeviceCapability Name="serialcommunication">
<Device Id="any">
<Function Type="name:serialPort" />
</Device>
</DeviceCapability>
</Capabilities>
</Package>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@ -32,7 +32,7 @@ namespace Microsoft.MicroBit
private void openEditor()
{
// lanch editor
try { Process.Start("https://codethemicrobit.com#uploader"); } catch (Exception) { }
try { Process.Start("https://pxt.microbit.org#uploader"); } catch (Exception) { }
}
private void initializeFileWatch()
@ -236,7 +236,7 @@ namespace Microsoft.MicroBit
{
try
{
Process.Start("https://codethemicrobit.com/uploader");
Process.Start("https://pxt.microbit.org/uploader");
}
catch (IOException) { }
}

View File

@ -1,59 +0,0 @@
/// <reference path="../node_modules/pxt-core/built/pxt.d.ts"/>
import * as fs from "fs";
import * as path from "path";
import * as child_process from "child_process";
let writeFileAsync: any = Promise.promisify(fs.writeFile)
let execAsync: (cmd: string, options?: { cwd?: string }) => Promise<Buffer> = Promise.promisify(child_process.exec)
let readDirAsync = Promise.promisify(fs.readdir)
export function deployCoreAsync(res: ts.pxtc.CompileResult) {
return getBitDrivesAsync()
.then(drives => {
if (drives.length == 0) {
let msg = "cannot find any drives to deploy to";
console.log(msg);
return Promise.reject(new Error(msg));
}
console.log(`copy ${ts.pxtc.BINARY_HEX} to ` + drives.join(", "))
return Promise.map(drives, d =>
writeFileAsync(d + ts.pxtc.BINARY_HEX, res.outfiles[ts.pxtc.BINARY_HEX])
.then(() => {
console.log("wrote hex file to " + d)
}))
})
.then(() => { })
}
function getBitDrivesAsync(): Promise<string[]> {
if (process.platform == "win32") {
const rx = new RegExp("^([A-Z]:).* " + pxt.appTarget.compile.deployDrives)
return execAsync("wmic PATH Win32_LogicalDisk get DeviceID, VolumeName, FileSystem")
.then(buf => {
let res: string[] = []
buf.toString("utf8").split(/\n/).forEach(ln => {
let m = rx.exec(ln)
if (m) {
res.push(m[1] + "/")
}
})
return res
})
}
else if (process.platform == "darwin") {
const rx = new RegExp(pxt.appTarget.compile.deployDrives)
return readDirAsync("/Volumes")
.then(lst => lst.filter(s => rx.test(s)).map(s => "/Volumes/" + s + "/"))
} else if (process.platform == "linux") {
const rx = new RegExp(pxt.appTarget.compile.deployDrives)
const user = process.env["USER"]
return readDirAsync(`/media/${user}`)
.then(lst => lst.filter(s => rx.test(s)).map(s => `/media/${user}/${s}/`))
} else {
return Promise.resolve([])
}
}

7
cmds/pxtrequire.ts Normal file
View File

@ -0,0 +1,7 @@
/// <reference path="../node_modules/pxt-core/typings/node/node.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"), "..", "..");

View File

@ -1,16 +0,0 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@codethemicrobit" />
<meta name="twitter:title" content="code the micro:bit" />
<meta name="twitter:description" content="Blocks+JavaScript for programming your micro:bit" />
<meta name="twitter:image" content="https://az851932.vo.msecnd.net/pub/drbwxcth" />
<meta property="og:title" content="micro:bit editor" />
<meta property="og:description" content="Blocks+JavaScript for programming your micro:bit" />
<meta property="og:site_name" content="code the micro:bit" />
<meta property="og:image" content="https://az851932.vo.msecnd.net/pub/drbwxcth" />
<!--
Canonical URL needs to wait until main release is updated.
<meta property="og:url" content="https://codethemicrobit.com" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="" />
-->

View File

@ -1,6 +0,0 @@
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
mixpanel.init("762fef19c053a0ea4cec43d2fecae76e", { disable_persistence: true });
if (typeof pxtConfig !== "undefined") mixpanel.register({ target: pxtConfig.targetId, version: pxtConfig.targetVersion });
</script>

View File

@ -1,21 +0,0 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@codethemicrobit" />
<meta name="twitter:title" content="@name@" />
<meta name="twitter:description" content="@description@" />
<meta name="twitter:image" content="@cardLogo@" />
<meta property="og:title" content="@name@" />
<meta property="og:site_name" content="code the micro:bit" />
<meta property="og:description" content="@description@" />
<meta property="og:image" content="@cardLogo@" />
<!--
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="" />
-->
<link rel="apple-touch-icon" href="@appLogo@">
<link rel="icon" type="image/png" href="@appLogo@">
<link rel="mask-icon" href="https://az851932.vo.msecnd.net/pub/zwxazere/safari-pinned-tab.svg" color="#000000">
<link rel="shortcut icon" href="@appLogo@">
<meta name="theme-color" content="@accentColor@">

View File

@ -1,5 +0,0 @@
#root .avatar .avatar-image {
background-image: url(https://az851932.vo.msecnd.net/pub/jovrytni/microbit.simplified.svg);
background-size: contain;
background-repeat: no-repeat;
}

View File

@ -1,6 +0,0 @@
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
mixpanel.init("762fef19c053a0ea4cec43d2fecae76e", { disable_persistence: true });
if (typeof pxtConfig !== "undefined") mixpanel.register({ target: pxtConfig.targetId, version: pxtConfig.targetVersion });
</script>

View File

@ -1,22 +0,0 @@
{
"name": "koduj z micro:bit",
"title": "koduj z micro:bit",
"docMenu": [
{
"name": "O nas",
"path": "/about"
},
{
"name": "Lekcje",
"path": "/lessons"
},
{
"name": "Instrukcja obsługi",
"path": "/reference"
},
{
"name": "Urządzenie",
"path": "/device"
}
]
}

View File

@ -1,7 +0,0 @@
# Dokumentacja
Witamy na stronach dokumentacji!
* Przeglądnij [instrukcje obsługi](/reference)
* Dowiedz się więcej o [urządzeniu](/device)
* Wystartuj z [lekcjami](/lessons)

View File

@ -79,7 +79,7 @@ When code is compiled to ARM machine code, the calls to JavaScript micro:bit fun
## [Command Line Tools](/cli)
Looking to use codethemicrobit.com in your favorite editor? Install the [command line tools](/cli) and get rolling!
Looking to use pxt.microbit.org in your favorite editor? Install the [command line tools](/cli) and get rolling!
## [Packages](/packages)

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

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

View File

@ -1,7 +1,6 @@
# Unsupported configuration
[codethemicrobit.com](https://codethemicrobit.com) doesn't currently support
your browser or operating system. The following configurations are supported:
Your browser is currently not supported. The following configurations are supported:
## Windows

View File

@ -1,12 +1,12 @@
# Technical information about browser support
[codethemicrobit.com][] requires that you use a recent version of a modern
[pxt.microbit.org][] requires that you use a recent version of a modern
browser, such as Microsoft Edge, Google Chrome, Mozilla Firefox, Safari, Opera,
or IE11. This is because the editor uses modern web technologies such as [web
workers][] to enable compiling [TypeScript][] in the browser, or the using the
same [Monaco][] editor that powers [Visual Studio Code][].
[codethemicrobit.com]: https://codethemicrobit.com
[pxt.microbit.org]: https://pxt.microbit.org
[web workers]: http://www.w3.org/TR/workers/
[typescript]: http://www.typescriptlang.org
[monaco]: https://microsoft.github.io/monaco-editor/

View File

@ -6,7 +6,7 @@ basic.forever(() => {
})
```
It is possible to use the codethemicrobit tools from a command line interface (CLI). The PXT CLI allows to
It is possible to use the tools from a command line interface (CLI). The PXT CLI allows to
* edit, compile or deploy JavaScript programs
* can easily be integrated in most IDEs. It comes with built-in support for [Visual Studio Code](/code)!
* run a local web server for the web editor

View File

@ -1,11 +1,40 @@
# crocodile clips
The large holes at the bottom of the board are designed to attach alligator/crocodile clips.
Register an event that will execute whenever the user attaches one side of the crocodile clip to the `GND` pin, then connects and disconnects the unattached side of the crocodile clip to pin `0`, `1`, or `2`.
The large holes at the bottom of the board are designed to attach alligator/crocodile clips
to create electrical circuit with other components.
### Example: on pin pressed with random numbers
# ~hint
This example displays a random number every time the crocodile clip holds `GND` then connects and disconnects the `P0` pin. Each time the crocodile clip is firmly connected and disconnected from pin `P0`, the micro:bit will return a random Number between 0 and the parameter limit
**No crocodile clips!?!?!** Use wires or Aluminium foil! [Read more...](/device/foil-circuits)
# ~
## Connecting Crocodile Clips
The hole for ``P0`` and ``GND`` allow to grab the board on the side which makes for a great grip.
![](/static/mb/device/croc-clips/crocclipsclamped.jpg)
Pass one jaw in the hole and grab the side of the board with the other jaw.
![](/static/mb/device/croc-clips/sideclamp.jpg)
For the center holes, ``P1`` and ``P2``, you can also grab the bottom of the board but they are a bit harder to grip.
You can also grip the board between the jaws. In which case, you will want to make sure to avoid overlapping the jaws
with the other pins as it will create short-circuit in the board.
![](/static/mb/device/croc-clips/badclamp.jpg)
Adding a little tape helps keeping the crocodile clips in place.
![](/static/mb/device/croc-clips/frontclamp.jpg)
## Example: on pin pressed with random numbers
This example displays a random number every time the crocodile clip holds `GND` then connects and disconnects the `P0` pin.
Each time the crocodile clip is firmly connected and disconnected from pin `P0`, the micro:bit will return a random Number between 0 and the parameter limit.
```blocks
input.onPinPressed(TouchPin.P0, () => {
@ -13,11 +42,6 @@ input.onPinPressed(TouchPin.P0, () => {
})
```
### Connecting Crocodile Clips
![](/static/mb/crocodile-clips-2.jpg)
### See also
[micro:bit pins](/device/pins), [pin is pressed](/reference/input/pin-is-pressed), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin)
## See also
[micro:bit pins](/device/pins)

View File

@ -1,7 +1,5 @@
# Error codes
The micro:bit error codes
Your micro:bit may encounter a situation that prevents it from running your code. When this happens, a frowny face will appear on your micro:bit screen (see picture) followed by an error number.
Below is a list of error numbers and what they mean:

View File

@ -0,0 +1,52 @@
# foil circuits
The large holes at the bottom of the board are designed to attach alligator/crocodile clips
to create electrical circuit with other components.
If you do not have crocodile clips at hand, dyou can use wires or even Aluminium foil to acheive the same result.
We will show you how to connect the micro:bit to headphones using Alumunium foil and tape.
https://youtu.be/mhXYyPuvpz0
### Materials
* micro:bit and battery pack (you can also power it via USB)
* a small piece of cardboard
* Aluminium foil
* tape
### Assembly instructions
Tape the micro:bit and battery pack to the card board. Make sure to remove the batteries while you are building your circuit.
![](/static/mb/device/croc-clips/microbitattached.jpg)
Cut the thinest strip of foil possible and roll it into a cable. You can also try to fold, whatever works for you.
Build two of those wires.
![](/static/mb/device/croc-clips/foilcut.jpg)
Place the foil wire on the ``GND`` pin and attach with a piece of tape. Press hard to get the best connection between
the foil and the pin board. Make sure the foil is not overlapping with the other pins!
![](/static/mb/device/croc-clips/groundconnected.jpg)
Place the second wire on the ``P0`` pin the same way. Make sure the wire does not overlap with the other pins!
![](/static/mb/device/croc-clips/microbitconnect.jpg)
Tape the headphone jack connector to the cardboard and roll the wire coming from ``GND`` around the metal base.
Make sure the wire does not touch the other metal rings on the jack.
![](/static/mb/device/croc-clips/jackground.jpg)
Tape the second wire on the head of the jack connector.
![](/static/mb/device/croc-clips/jackconnect.jpg)
![](/static/mb/device/croc-clips/foilcircuit.jpg)
## See also
[micro:bit pins](/device/pins)

View File

@ -91,3 +91,10 @@ basic.showString("d", 150)
You will not see the LED at position `0,0` lit up because the `show string` function overwrites the whole display buffer.
### Pins: P3, P4, P6, P7, P9, P10
These pins are coupled to the LED matrix display, and also its associated ambient light sensing mode.
To disable the display driver feature (which will automatically disable the light sensing feature) use the function [led.enable](/reference/led/enable).
More information at http://tech.microbit.org/hardware/edgeconnector_ds/ .

View File

@ -29,7 +29,7 @@ Unfortunately, using the serial library requires quite a bit of a setup.
If you are using the Google Chrome browser, you can use our extension to get serial data streaming in the editor.
* Install the [Extension for BBC micro:bit](https://chrome.google.com/webstore/detail/extension-for-bbc-microbi/cihhkhnngbjlhahcfmhekmbnnjcjdbge?hl=en-US) on the Chrome Web Store.
* Restart Chrome and open the [web editor](https://codethemicrobit.com)
* Restart Chrome and open the [web editor](https://pxt.microbit.org)
* The serial data will show below the simulator
### Windows

View File

@ -34,7 +34,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -34,7 +34,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -34,7 +34,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -41,7 +41,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -43,7 +43,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -43,7 +43,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -41,7 +41,7 @@ it appears as a new drive under Devices.
## Step 2: Download your program
1. Open your project on [codethemicrobit.com](https://codethemicrobit.com)
1. Open your project on [pxt.microbit.org](https://pxt.microbit.org)
2. Click **Download**
3. When prompted, choose to **save** the compiled file onto your computer. The
prompt will be different depending on which browser you are using, or

View File

@ -5,27 +5,27 @@
### Things to do
* **[Getting Started](/getting-started)**
* [Ten projects](/projects)
* [Projects](/projects)
* [Lessons](/lessons)
### Micro:bit reference
### @boardname@ reference
* [The micro:bit APIs](/reference)
* [The micro:bit device](/device)
* [The @boardname@ APIs](/reference)
* [The @boardname@ device](/device)
### Language and data reference
* [Blocks language](/blocks)
* [JavaScript language](/javascript)
* [Streaming data](/streaming)
### More questions?
* [Frequently Asked Question](/faq)
* [Embedding project](/share)
* [Help Translate](/translate)
* [Release notes](/release-notes)
* [Embedding project](/share)
### Developers
* [Command Line Interface](/cli)
* Learn about [packages](/packages)

View File

@ -2,33 +2,13 @@
### @description Frequently asked questions and answers from our users.
### Where can I get a BBC micro:bit?
## Which web sites do I need to unblock for pxt.microbit.org?
More information at [http://uk.farnell.com/bbc-microbit](http://uk.farnell.com/bbc-microbit).
This is the list of domains that need to be unblocked to allow the web editor to load:
### How do I send feedback?
* https://pxt.microbit.org
* https://www.pxt.io
* https://trg-microbit.userpxt.io
* https://pxt.azureedge.net
Find the small bubble icon on the bottom of the editor and
post your feedback from there!
### How do I save my code?
The web editor automatically saves your code in the browser cache. Simply reopen the browser and navigate to the web editor
to reopen your latest project. You can also open previous project stored locally through **More -> Open Project**.
The project source is also stored in each compiled ``.hex`` file. Drag and drop the ``.hex`` file into the web editor to load the project.
To share your project with others, you can use the [Embed Project...](/share).
It stores your project in the cloud and creates a URL that you can share with others.
If you are using [Visual Studio Code](/code), all your programs are stored as files on your computer and you can use your favorite source control system as needed.
## Is the web site available in other languages?
You can [help us translate](/translate) the web site, documentation and blocks via our crowd-source translations!
## Troubleshooting
### My micro:bit does not show up as a drive when I connect it to my computer.
A common cause for this is a broken cable. Pick another USB cable and try it. Otherwise, try another computer as well.
Can't find your question? Please search for solutions or open a ticket at [support.microbit.org](https://support.microbit.org)!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,6 +1,6 @@
# Getting started
### @description An activity for beginners to get started with the micro:bit
### @description An activity for beginners to get started with the @boardname@
## ~avatar
@ -35,7 +35,7 @@ When this program runs, you will see a smiley face, then a blank
screen, then a smiley again -- it never stops! (That's because of the
``forever`` block.)
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
Make sure to follow the instructions.
### ~button /getting-started/screen

View File

@ -18,11 +18,11 @@ input.onButtonPressed(Button.A, () => {
#### ~hint
The ``showString`` block can show letters, numbers, and punctuation
on the micro:bit screen.
on the @boardname@ screen.
#### ~
Now try to unscramble these blocks in the editor so that the micro:bit
Now try to unscramble these blocks in the editor so that the @boardname@
shows **BANANA** when you press button `B`.
```shuffle
@ -37,7 +37,7 @@ You can find the letter `B` by clicking the letter `A` on the
#### ~
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
#### Your turn!
@ -48,9 +48,9 @@ name_ instead of **BANANA** when you press `B`?
### Pins
You can also use the pins as buttons. (The pins are the holes in the
metal stripe at the bottom of the micro:bit board.) For example, hold
metal stripe at the bottom of the @boardname@ board.) For example, hold
the ``GND`` button with one hand and touch the ``0`` pin (called
``P0``) with your other hand to tell the micro:bit you're pressing it.
``P0``) with your other hand to tell the @boardname@ you're pressing it.
Unscramble the blocks in the editor to show a heart when you touch
pin ``P0``.
@ -65,7 +65,7 @@ input.onPinPressed(TouchPin.P0, () => {
. . # . .`);
});
```
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
## ~hint

View File

@ -4,7 +4,7 @@
Are you trying to choose whether to play soccer or go to the movies
instead, or which toppings to have on your pizza? Build a coin
flipping machine with the BBC micro:bit to choose for you!
flipping machine with the @boardname@ to choose for you!
### ~
@ -50,7 +50,7 @@ input.onButtonPressed(Button.AB, () => {
```
These blocks mean that if you press button `A`, you will add `1` to
your score, and if you press `A` and `B` together, the micro:bit will
your score, and if you press `A` and `B` together, the @boardname@ will
show your score.
When you're done, your coin flipping program should look like this:

View File

@ -2,8 +2,8 @@
### ~avatar avatar
Build a Rock Paper Scissors game with the BBC micro:bit! You can play
the game with a friend who has it on a micro:bit. You can also play
Build a Rock Paper Scissors game with the @boardname@! You can play
the game with a friend who has it on a @boardname@. You can also play
it with friends who are just using their hands. (The game is built
like a coin flipper, but with three choices instead of two.)
@ -11,9 +11,9 @@ like a coin flipper, but with three choices instead of two.)
## Step 1: Getting started
We want the micro:bit to choose rock, paper, or scissors when you
We want the @boardname@ to choose rock, paper, or scissors when you
shake it. Try creating an ``on shake`` block so when you shake the
micro:bit, it will run part of a program.
@boardname@, it will run part of a program.
Clear up the blocks and add the blocks below.
@ -23,7 +23,7 @@ input.onGesture(Gesture.Shake, () => {
})
```
Next, when you shake the micro:bit, it should pick a random number from `0` to `2`
Next, when you shake the @boardname@, it should pick a random number from `0` to `2`
and store it in the variable `item`.
Add a ``set`` block with a variable. Then add a ``pick random`` block,
@ -75,7 +75,7 @@ input.onGesture(Gesture.Shake, () => {
## Step 3: A random rock
Now we are going to add a new picture for the micro:bit to show
Now we are going to add a new picture for the @boardname@ to show
when another random number comes up.
Make the ``else if`` part check if the variable `item` is `1`.
@ -152,7 +152,7 @@ That's why you can use an ``else`` instead of an ``else if``.
Your game is ready!
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
Have fun!
@ -160,7 +160,7 @@ Have fun!
Here is a way you can make your Rock Paper Scissors game better.
When button ``A`` is pressed,
the micro:bit will add `1` to your score.
the @boardname@ will add `1` to your score.
Open the ``Game`` drawer, and then add the block ``change score by 1`` to your program,
like this:
@ -174,7 +174,7 @@ input.onButtonPressed(Button.A, () => {
## Step 6: Prove you're the greatest!
After your micro:bit can add `1` to the score, show how many wins you have.
After your @boardname@ can add `1` to the score, show how many wins you have.
```blocks
input.onButtonPressed(Button.A, () => {
@ -185,7 +185,7 @@ input.onButtonPressed(Button.A, () => {
```
## Step 7: Staying honest
Success! Your micro:bit can track wins!
Success! Your @boardname@ can track wins!
But what about losses?
Use the ``Game`` drawer to subtract `1` from your score when you press button `B`.
@ -198,7 +198,7 @@ input.onButtonPressed(Button.B, () => {
basic.showNumber(game.score())
})
```
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
### ~button /projects
NEXT: PROJECTS!

View File

@ -2,7 +2,7 @@
### ~avatar avatar
There are 25 bright LEDs on the micro:bit screen. Let's use them to create some cool animations!
There are 25 bright LEDs on the @boardname@ screen. Let's use them to create some cool animations!
### ~
@ -12,7 +12,7 @@ Draw an unhappy face instead of the blank screen. Click on the dots
in the second ``show leds`` block until it matches the blocks below.
Now you have an **animation** (cartoon) that shows a happy face,
then an unhappy one, then a happy one again, forever (or until
you turn off your micro:bit)!
you turn off your @boardname@)!
```blocks
basic.forever(() => {
@ -32,7 +32,7 @@ basic.forever(() => {
`)
});
```
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
### Your turn!
@ -85,7 +85,7 @@ basic.forever(() => {
`)
});
```
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
#### ~hint

View File

@ -1,11 +1,11 @@
# Shake
You can find when someone is shaking the BBC micro:bit by checking its
**accelerometer** (it finds whether the micro:bit is speeding up or
You can find when someone is shaking the @boardname@ by checking its
**accelerometer** (it finds whether the @boardname@ is speeding up or
slowing down).
Unscramble these blocks in the editor to show a frownie when someone
shakes the micro:bit. (Ouch!)
shakes the @boardname@. (Ouch!)
```shuffle
input.onGesture(Gesture.Shake, () => {
@ -17,7 +17,7 @@ input.onGesture(Gesture.Shake, () => {
# . . . #`);
});
```
Click **Download** to move your program to the BBC micro:bit!
Click **Download** to move your program to the @boardname@!
### ~button /getting-started/coin-flipper
NEXT: COIN FLIPPER GAME

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

@ -0,0 +1,3 @@
{
"appref": "v0.5.89"
}

View File

@ -1,6 +1,7 @@
# JavaScript
Visit the cards below to starting programming JavaScript and TypeScript with the micro:bit:
Visit the cards below to starting programming JavaScript
with the @boardname@:
```codecard
[{

View File

@ -1,8 +1,8 @@
# Call a function
The simplest way to get started in JavaScript with your micro:bit is to
call one of the micro:bit's built-in JavaScript functions. Just like Blocks
are organized into categories/drawers, the micro:bit functions are organized by
The simplest way to get started in JavaScript with your @boardname@ is to
call one of the @boardname@'s built-in JavaScript functions. Just like Blocks
are organized into categories/drawers, the @boardname@ functions are organized by
namespaces, with names corresponding to the drawer names. The `basic` namespace
contains a number of helpful functions, such as:

View File

@ -35,7 +35,7 @@ This calls into the constructor we defined earlier, creating a new object with t
# Inheritance
### ~hint
### Inheritance is not supported yet for the micro:bit. Coming soon...
### Inheritance is not supported yet for the @boardname@. Coming soon...
### ~
In TypeScript, we can use common object-oriented patterns.

View File

@ -1,8 +1,8 @@
# Frequently asked questions
# What is the language supported for the micro:bit?
# What is the language supported for the @boardname@?
For the micro:bit, we support a "static" subset of TypeScript (itself a superset of JavaScript):
For the @boardname@, we support a "static" subset of TypeScript (itself a superset of JavaScript):
## Supported language features

View File

@ -13,7 +13,7 @@ basic.showNumber(add(1, 2))
```
### ~ hint
For the micro:bit, you must specify a [type](/js/types) for each function parameter.
For the @boardname@, you must specify a [type](/js/types) for each function parameter.
### ~
Functions can refer to variables outside of the function body.

View File

@ -1,9 +1,9 @@
## Operators
The following JavaScript operators are supported for the micro:bit.
The following JavaScript operators are supported for the @boardname@.
### ~hint
Note that for the micro:bit all arithmetic is performed on integers, rather than floating point.
Note that for the @boardname@ all arithmetic is performed on integers, rather than floating point.
This also is true when simulating in the browser.
### ~

View File

@ -41,14 +41,14 @@ In JavaScript, there is the concept of an *empty statement*, which is whitespace
a semicolon in the context where a statement is expected.
So, the following code is an infinite loop
followed by a call to `showNumber` that will never execute:
```typescript
while(true) ;
```typescript-ignore
while(true) ;
basic.showNumber(1);
```
### ~hint
For the micro:bit, we don't allow a program to contain an empty statement, such as shown above.
For the @boardname@, we don't allow a program to contain an empty statement, such as shown above.
If you really want an empty statement, you need to use curly braces to delimit an empty statement block:
```typescript
while(true) { }

View File

@ -1,6 +1,6 @@
# Statements
The following JavaScript statements are supported for the micro:bit:
The following JavaScript statements are supported for the @boardname@:
## Variable declarations
* `const` statement - [read more](http://devdocs.io/javascript/statements/const)

View File

@ -15,7 +15,7 @@ let isDone: boolean = false;
### ~ hint
In JavaScript, `numbers` are floating point values.
However, for the micro:bit, `numbers` are integer values.
However, for the @boardname@, `numbers` are integer values.
### ~
Integer values can be specified via decimal, hexadecimal and octal notation:
@ -51,6 +51,8 @@ I'll be ${ age + 1 } years old next month.`
This is equivalent to declaring `sentence` like so:
```ts
let fullName: string = `Bob Bobbington`;
let age: number = 37;
let sentence: string = "Hello, my name is " + fullName + ".\n\n" +
"I'll be " + (age + 1) + " years old next month."
```
@ -72,7 +74,7 @@ let list: Array<number> = [1, 2, 3];
```
### ~hint
For the micro:bit, all elements of an array must have the same type.
For the @boardname@, all elements of an array must have the same type.
### ~
@ -82,7 +84,7 @@ A helpful addition to the standard set of datatypes from JavaScript is the `enum
As in languages like C#, an enum is a way of giving more friendly names to sets of numeric values.
```ts
enum Color {Red, Green, Blue};
enum Color {Red, Green, Blue}
let c: Color = Color.Green;
```
@ -91,20 +93,20 @@ You can change this by manually setting the value of one of its members.
For example, we can start the previous example at `1` instead of `0`:
```ts
enum Color {Red = 1, Green, Blue};
enum Color {Red = 1, Green, Blue}
let c: Color = Color.Green;
```
Or, even manually set all the values in the enum:
```ts
enum Color {Red = 1, Green = 2, Blue = 4};
enum Color {Red = 1, Green = 2, Blue = 4}
let c: Color = Color.Green;
```
# Any
The TypeScript type `any` is not supported in the micro:bit.
The TypeScript type `any` is not supported in the @boardname@.
# Void

View File

@ -28,7 +28,7 @@
## Intermediate
* [Magic 8](/lessons/magic-8), a fortune teller game with the BBC micro:bit
* [Magic 8](/lessons/magic-8), a fortune teller game with the @boardname@
* [Guess the Number](/lessons/guess-the-number), guess a random number with pick number
* [Counter](/lessons/counter), display a number with a variable
* [Love Meter](/lessons/love-meter), create a love meter with on pin pressed
@ -40,7 +40,7 @@
* [Temperature](/lessons/temperature), get the ambient temperature (degree Celsius °C)
* [Digi Yoyo](/lessons/digi-yoyo), create a counter with a while loop
* [Rotation Animation](/lessons/rotation-animation), control an animation with a boolean variable
* [Compass](/lessons/compass), displays the direction the BBC micro:bit is pointing with compass
* [Compass](/lessons/compass), displays the direction the @boardname@ is pointing with compass
* [Zoomer](/lessons/zoomer), measure the force with acceleration
* [Glowing Pendulum](/lessons/glowing-pendulum), construct a pendulum that glows using acceleration
* [Classic Beatbox](/lessons/classic-beatbox), make a beatbox music player with variables
@ -60,7 +60,7 @@
* [Prank WiFi](/lessons/prank-wifi), create fake WiFi to trick your friends
* [Speed Button](/lessons/speed-button), code a speed game with running time
* [Headbands](/lessons/headbands), create a charades game with a collection of strings that hold the words
* [Hero](/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit
* [Hero](/lessons/hero), reconstruct the classic arcade game pac man with the @boardname@
* [Catch the Egg](/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller
### ~

View File

@ -1,6 +1,6 @@
# answering machine blocks lesson
Create an answering machine on the BBC micro:bit
Create an answering machine on the @boardname@
## Topic

View File

@ -1,6 +1,6 @@
# answering machine blocks activity
Learn to create an answering machine on the micro:bit
Learn to create an answering machine on the @boardname@
### ~avatar avatar

View File

@ -12,7 +12,7 @@ basic.showString("ASK ME A QUESTION")
### Challenge 1
Now we need to reply after someone asks micro:bit a yes or no question. We want to respond `YES` when button `A` is pressed. Add a condition for button `A` and inside it show the string `YES`.
Now we need to reply after someone asks @boardname@ a yes or no question. We want to respond `YES` when button `A` is pressed. Add a condition for button `A` and inside it show the string `YES`.
```blocks
basic.showString("ASK ME A QUESTION")
@ -25,7 +25,7 @@ input.onButtonPressed(Button.A, () => {
### Challenge 2
What if micro:bit's answer to the question is no? Let's have `NO` be displayed when button `B` is pressed. Add a condition for button `B` and inside it show the string `NO`.
What if @boardname@'s answer to the question is no? Let's have `NO` be displayed when button `B` is pressed. Add a condition for button `B` and inside it show the string `NO`.
```blocks
basic.showString("ASK ME A QUESTION")

View File

@ -1,6 +1,6 @@
# answering machine blocks quiz answers
Create an answering machine on the micro:bit.
Create an answering machine on the @boardname@.
This is the answer key for the [answering machine quiz](/lessons/answering-machine/quiz).
@ -26,7 +26,7 @@ basic.showString("Hi")
![](/static/mb/lessons/answering-machine-1.png)
## 4. If the rectangle below represents the micro:bit, write the code to display the letter "Z".
## 4. If the rectangle below represents the @boardname@, write the code to display the letter "Z".
![](/static/mb/lessons/answering-machine-2.png)

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