Compare commits

..

252 Commits

Author SHA1 Message Date
Peli de Halleux
07b07a5a3f 0.5.60 2016-11-02 15:13:35 -07:00
Peli de Halleux
f46c23fb92 Bump pxt-core to 0.5.44 2016-11-02 15:13:30 -07:00
Peli de Halleux
2e9ad0ad92 0.5.59 2016-11-02 11:35:21 -07:00
Peli de Halleux
68cbb963fc Bump pxt-core to 0.5.41 2016-11-02 11:35:16 -07:00
Peli de Halleux
1c1e960252 0.5.58 2016-11-02 08:20:02 -07:00
Peli de Halleux
077ecaab87 Bump pxt-core to 0.5.38 2016-11-02 08:19:58 -07:00
Peli de Halleux
3111960ecf don't override meta 2016-11-02 08:19:51 -07:00
Peli de Halleux
2f203d68d1 0.5.57 2016-11-01 21:51:37 -07:00
Peli de Halleux
aeb3b6f864 Bump pxt-core to 0.5.37 2016-11-01 21:51:34 -07:00
Sam El-Husseini
ed8aaf8bda Updating to use pxt.less 2016-11-01 17:49:39 -07:00
Peli de Halleux
c191cdf7ec updated locs 2016-11-01 09:26:03 -07:00
Peli de Halleux
67eb1d3b19 0.5.56 2016-10-31 22:34:52 -07:00
Peli de Halleux
6a13b9737e Bump pxt-core to 0.5.33 2016-10-31 22:34:50 -07:00
Peli de Halleux
1ec7e67fb0 0.5.55 2016-10-31 11:36:57 -07:00
Peli de Halleux
c3253e24fc Bump pxt-core to 0.5.31 2016-10-31 11:36:55 -07:00
Peli de Halleux
326cd7d0c3 bumped to v0.5.54 2016-10-30 23:48:01 -07:00
Peli de Halleux
804cc8c091 0.5.54 2016-10-30 23:41:55 -07:00
Peli de Halleux
64ff568597 enable translated blocks 2016-10-30 23:41:18 -07:00
Peli de Halleux
4196ba6632 bumped to v0.5.53 2016-10-30 22:58:48 -07:00
Peli de Halleux
26626d2a2a 0.5.53 2016-10-30 22:52:35 -07:00
Peli de Halleux
b70a2fc096 Bump pxt-core to 0.5.30 2016-10-30 22:52:32 -07:00
Peli de Halleux
9791a02c7e hide docs 2016-10-30 22:52:16 -07:00
Peli de Halleux
89ceeefc32 0.5.52 2016-10-30 22:23:02 -07:00
Peli de Halleux
91235d2377 Bump pxt-core to 0.5.29 2016-10-30 22:23:00 -07:00
Sam El-Husseini
a805d7b8a8 updated ref version 2016-10-28 16:44:22 -07:00
Sam El-Husseini
89fdbcdc4f 0.5.51 2016-10-28 16:14:51 -07:00
Peli de Halleux
92d1d2ffc3 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-28 14:08:22 -07:00
Peli de Halleux
82c9af836f bumped to 0.5.50 2016-10-28 14:08:14 -07:00
Sam El-Husseini
da90401fe6 0.5.50 2016-10-28 14:05:33 -07:00
Sam El-Husseini
315a12dd8b Bump pxt-core to 0.5.28 2016-10-28 14:05:32 -07:00
Peli de Halleux
72ec2d617e 0.5.49 2016-10-28 13:53:46 -07:00
Peli de Halleux
4d9ae63831 Bump pxt-core to 0.5.27 2016-10-28 13:53:41 -07:00
Peli de Halleux
3eab21cff1 udpated icons 2016-10-28 13:52:17 -07:00
Peli de Halleux
5a37385d14 0.5.48 2016-10-28 13:31:48 -07:00
Peli de Halleux
9fa412ff6f Bump pxt-core to 0.5.26 2016-10-28 13:31:43 -07:00
Sam El-Husseini
3f7fbb70ba Removing blockly trash icon 2016-10-28 11:27:26 -07:00
Sam El-Husseini
20189a709b Using Google font: Roboto 2016-10-28 11:15:19 -07:00
Peli de Halleux
111b321722 0.5.47 2016-10-28 10:41:47 -07:00
Peli de Halleux
b8fe8f9294 Bump pxt-core to 0.5.24 2016-10-28 10:41:45 -07:00
Matthias L. Jugel
7b478c4c38 update ref version 2016-10-28 17:47:48 +02:00
Matthias L. Jugel
a68e1a611d 0.5.46 2016-10-28 17:47:33 +02:00
Matthias L. Jugel
b3b2944b46 add dnd picture 2016-10-28 17:39:57 +02:00
Peli de Halleux
c809ee4fdf 0.5.45 2016-10-28 00:36:26 -07:00
Peli de Halleux
8e67e69602 Bump pxt-core to 0.5.23 2016-10-28 00:36:23 -07:00
Sam El-Husseini
0b508e37b1 0.5.44 2016-10-27 23:21:21 -07:00
Sam El-Husseini
e1a3aca9f8 Removing blockly custom media folder 2016-10-27 23:21:05 -07:00
Sam El-Husseini
bbe93ae9a2 UI changes: fixing mobile view. 2016-10-27 18:43:09 -07:00
Peli de Halleux
6fd18b4f4c 0.5.43 2016-10-27 16:20:39 -07:00
Peli de Halleux
b511537348 Bump pxt-core to 0.5.21 2016-10-27 16:20:37 -07:00
Sam El-Husseini
749ba6b984 UI changes to match the calliope design. 2016-10-27 16:15:44 -07:00
Peli de Halleux
e571bec213 0.5.42 2016-10-27 14:30:07 -07:00
Peli de Halleux
1ad90eda81 Bump pxt-core to 0.5.18 2016-10-27 14:30:05 -07:00
Peli de Halleux
0c604498d3 0.5.41 2016-10-27 13:48:27 -07:00
Peli de Halleux
a8ec408f96 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-27 13:47:58 -07:00
Peli de Halleux
40fe1b4616 fix simulator support for music 2016-10-27 13:47:39 -07:00
Matthias L. Jugel
e52da19925 0.5.40 2016-10-27 20:50:10 +02:00
Matthias L. Jugel
d558f70118 add first pictures of calliope 2016-10-27 20:47:09 +02:00
Peli de Halleux
8fca50e907 0.5.39 2016-10-27 11:31:10 -07:00
Peli de Halleux
8c4abe979b Bump pxt-core to 0.5.17 2016-10-27 11:31:08 -07:00
Matthias L. Jugel
d4fa9dab1b 0.5.38 2016-10-27 19:49:35 +02:00
Matthias L. Jugel
955b67b6b8 rev. 0.2 sound patches 2016-10-27 19:48:42 +02:00
Michal Moskal
739be09ac9 Bumping main version to 0.5.37 with fixed icons 2016-10-25 19:53:38 +01:00
Michal Moskal
5877adc595 0.5.37 2016-10-25 18:55:41 +01:00
Michal Moskal
0380f4f0d0 Bump pxt-core to 0.5.11 2016-10-25 18:55:40 +01:00
Peli de Halleux
13a4b03e9a 0.5.36 2016-10-24 23:18:56 -07:00
Peli de Halleux
4b21d51769 Bump pxt-core to 0.5.9 2016-10-24 23:18:52 -07:00
Peli de Halleux
e7aed1d162 fixed sounds in simulator 2016-10-24 23:17:16 -07:00
Peli de Halleux
60e71e3e35 0.5.35 2016-10-24 16:39:57 -07:00
Peli de Halleux
b003d89061 Bump pxt-core to 0.5.7 2016-10-24 16:39:55 -07:00
Sam El-Husseini
a5eb93d3e1 Updating theme.config to use the pxt theme. 2016-10-24 14:07:20 -07:00
Peli de Halleux
224cb446e4 0.5.34 2016-10-24 13:51:08 -07:00
Peli de Halleux
62b3d7504f Bump pxt-core to 0.5.4 2016-10-24 13:51:06 -07:00
Peli de Halleux
c937cba17e merging pxt-microbit updates 2016-10-24 13:00:39 -07:00
Richard Knoll
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
Michal Moskal
0765159633 0.5.33 2016-10-24 20:53:32 +01:00
Michal Moskal
b14a025b14 Bump pxt-core to 0.5.3 2016-10-24 20:53:32 +01:00
Peli de Halleux
3ccc8b7db3 0.5.3 2016-10-24 12:52:33 -07:00
Michal Moskal
7c8bae3cf0 0.5.2 2016-10-24 20:51:33 +01:00
Michal Moskal
000f784011 Bump pxt-core to 0.5.3 2016-10-24 20:51:33 +01:00
Guillaume Jenkins
d85446d34d Support for offline hex cache (#282) 2016-10-24 12:32:05 -07:00
Peli de Halleux
74f8cc7b2e 0.5.32 2016-10-24 10:28:24 -07:00
Peli de Halleux
cf778686c3 Merging microbit/master 2016-10-24 10:27:48 -07:00
Peli de Halleux
99bee9e796 Merge branch 'master' of https://github.com/Microsoft/pxt-calliope 2016-10-24 10:14:43 -07:00
Michal Moskal
cb61c1a712 Bump main version to 0.5.31 with fixed icons 2016-10-24 18:01:45 +01:00
Michal Moskal
fdf3d1b66c 0.5.31 2016-10-24 17:39:33 +01:00
Michal Moskal
25ddbf9ffd Bump pxt-core to 0.5.2 2016-10-24 17:39:32 +01:00
Michal Moskal
578f971d26 Add tagged release names 2016-10-24 16:59:46 +01:00
Michal Moskal
06641d4e5c Beta is latest tagged releases 2016-10-24 16:58:12 +01:00
Michal Moskal
a705c4882b Add initial release pointers 2016-10-24 16:48:03 +01:00
Michal Moskal
b36ffaf29c 0.5.30 2016-10-24 16:32:56 +01:00
Michal Moskal
bff088fced Bump pxt-core to 0.5.1 2016-10-24 16:32:56 +01:00
Michal Moskal
784565b24e 0.5.1 2016-10-24 16:31:48 +01:00
Michal Moskal
b59e4effff Bump pxt-core to 0.5.1 2016-10-24 16:31:48 +01:00
Michal Moskal
2db2741b08 Bumping to 0.5 (to ~sync with pxt) 2016-10-24 16:30:56 +01:00
Peli de Halleux
66a46e4046 fixing links in docs 2016-10-22 23:04:08 -07:00
David Whale
2f11d603e7 Added a range of original TouchDevelop scripts converted to .ts for tests (#283) 2016-10-22 21:32:57 -07:00
Peli de Halleux
8089fe262e 0.4.64 2016-10-22 21:29:43 -07:00
Peli de Halleux
7d7d13f3ab Bump pxt-core to 0.4.74 2016-10-22 21:29:41 -07:00
Peli de Halleux
bd1536132d fixing references / snippets
cleanup "snippets" compilation state
2016-10-22 21:29:31 -07:00
Peli de Halleux
fcefe1ed36 Fixing a few typos 2016-10-22 20:34:18 -07:00
Peli de Halleux
748581d76d 0.4.63 2016-10-22 20:31:17 -07:00
Peli de Halleux
f21f9e6e88 Bump pxt-core to 0.4.73 2016-10-22 20:31:15 -07:00
gingemonster
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
Peli de Halleux
4bcba9b9e5 0.4.62 2016-10-21 14:51:39 -07:00
Peli de Halleux
b3b836d77c Bump pxt-core to 0.4.72 2016-10-21 14:50:55 -07:00
Peli de Halleux
a2cb2c2ed0 Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-10-21 14:46:23 -07:00
Abhijith Chatra
44e2ffc874 Merge pull request #281 from Microsoft/musicfix
Fixing music doc issues
2016-10-21 14:21:19 -07:00
Peli de Halleux
64b68c7439 updated faq to point to support 2016-10-21 11:45:29 -07:00
Peli de Halleux
198b24c6a4 use secure support link 2016-10-21 11:42:29 -07:00
Peli de Halleux
a90a43d719 updated logo 2016-10-21 11:12:03 -07:00
Peli de Halleux
f9d138cb42 migrating to pxt.microbit.org settings 2016-10-21 10:49:04 -07:00
Peli de Halleux
f2c87db3ed using default analytics settings 2016-10-21 10:23:23 -07:00
Peli de Halleux
13089f92a8 using default tracking settings 2016-10-21 09:56:28 -07:00
Abhijith
0b1b312e76 Fixing music doc issues 2016-10-21 08:48:43 -07:00
Peli de Halleux
958ff2ef40 0.4.61 2016-10-20 22:45:57 -07:00
Peli de Halleux
eaf982903f Bump pxt-core to 0.4.71 2016-10-20 22:45:50 -07:00
Peli de Halleux
8c15af11db 0.5.29 2016-10-20 20:16:52 -07:00
Peli de Halleux
35e414764f missing tools 2016-10-20 20:14:25 -07:00
Peli de Halleux
333659c320 0.5.28 2016-10-20 20:12:03 -07:00
Peli de Halleux
8c161583eb Bump pxt-core to 0.4.71 2016-10-20 20:12:02 -07:00
Peli de Halleux
b20e185bf2 parameterize download button color 2016-10-20 19:36:00 -07:00
Peli de Halleux
299b595581 added custom theme style 2016-10-20 19:29:10 -07:00
Peli de Halleux
65433216e6 adding semantic ui files 2016-10-20 16:40:39 -07:00
Peli de Halleux
cbfbcd080a 0.4.60 2016-10-20 15:09:13 -07:00
Peli de Halleux
9c389e290e Bump pxt-core to 0.4.70 2016-10-20 15:09:11 -07:00
Peli de Halleux
4dd26f854c 0.4.59 2016-10-20 12:18:39 -07:00
Peli de Halleux
66444b886c Bump pxt-core to 0.4.69 2016-10-20 12:18:37 -07:00
Peli de Halleux
9ea2081e89 0.5.27 2016-10-20 11:48:48 -07:00
Peli de Halleux
808e5fa17b Bump pxt-core to 0.4.68 2016-10-20 11:48:46 -07:00
Peli de Halleux
20d967a230 removing .ico file 2016-10-20 11:30:04 -07:00
Peli de Halleux
c1e5419e45 updated icons 2016-10-20 11:26:44 -07:00
Peli de Halleux
0c01fdb30b adding favicon configuration file 2016-10-20 11:09:34 -07:00
Peli de Halleux
75c2ccdea9 0.4.58 2016-10-20 10:12:33 -07:00
Peli de Halleux
2dff5c1140 Bump pxt-core to 0.4.68 2016-10-20 10:12:31 -07:00
Peli de Halleux
0ab28076f3 removing windows 10 client, updated urls in chrome/macos/uploaders 2016-10-20 10:01:02 -07:00
Peli de Halleux
27f5411404 0.5.26 2016-10-20 08:29:16 -07:00
Peli de Halleux
f53eab0539 Bump pxt-core to 0.4.67 2016-10-20 08:29:11 -07:00
Matthias L. Jugel
445fe12629 0.5.25 2016-10-19 19:11:13 +02:00
Matthias L. Jugel
ddd6e90c6d Merge remote-tracking branch 'origin/master' 2016-10-19 19:08:52 +02:00
Matthias L. Jugel
fd14ba6ff1 fix touch pins, add test for buttons and pins, update dependency 2016-10-19 19:08:41 +02:00
Peli de Halleux
28a8f21d40 merging ble changes 2016-10-18 21:55:02 -07:00
Peli de Halleux
3f626105cd 0.5.24 2016-10-18 21:07:02 -07:00
Peli de Halleux
d9ff9c4800 Bump pxt-core to 0.4.65 2016-10-18 21:07:00 -07:00
Peli de Halleux
31998fec05 0.5.23 2016-10-18 13:18:45 -07:00
Peli de Halleux
342aa3ca32 Bump pxt-core to 0.4.63 2016-10-18 13:18:43 -07:00
Matthias L. Jugel
9b599b6242 0.5.22 2016-10-18 16:56:58 +02:00
Matthias L. Jugel
e5e63c548f update dal defines 2016-10-18 16:56:42 +02:00
Matthias L. Jugel
f3eb9a988f update dependencies 2016-10-18 16:56:15 +02:00
Matthias L. Jugel
e7e2ff7752 gesture updates 2016-10-18 16:40:53 +02:00
Matthias L. Jugel
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
Matthias L. Jugel
47f46553e0 fix name of board 2016-10-18 15:43:52 +02:00
Peli de Halleux
3158e95cde 0.5.21 2016-10-17 21:39:08 -07:00
Peli de Halleux
854029fe33 updated board name 2016-10-17 21:38:58 -07:00
Peli de Halleux
1b379bddd0 0.5.20 2016-10-17 21:35:07 -07:00
Peli de Halleux
9495da9a53 0.5.19 2016-10-17 21:25:11 -07:00
Peli de Halleux
128b3f2f51 Bump pxt-core to 0.4.62 2016-10-17 21:25:08 -07:00
Peli de Halleux
a331a017b8 merged microbit changes 2016-10-17 13:36:54 -07:00
Peli de Halleux
5cce86ec7e 0.5.18 2016-10-17 10:54:19 -07:00
Peli de Halleux
65e01dc0df Bump pxt-core to 0.4.59 2016-10-17 10:54:17 -07:00
Peli de Halleux
7aeb216462 0.5.17 2016-10-16 20:26:19 -07:00
Peli de Halleux
543659b0e8 specifying pin positions 2016-10-16 20:25:55 -07:00
Peli de Halleux
a2b5ff68af 0.5.16 2016-10-16 20:09:30 -07:00
Peli de Halleux
b968d3b1de fixing simulator in IE11 2016-10-16 20:09:13 -07:00
Peli de Halleux
4dbebe3e15 fixing logo in IE11 2016-10-16 09:28:30 -07:00
Peli de Halleux
3b95fede48 optimizing logo 2016-10-16 09:19:40 -07:00
Peli de Halleux
971faed80a 0.5.15 2016-10-14 21:56:38 -07:00
Peli de Halleux
02a58caf7a Bump pxt-core to 0.4.58 2016-10-14 21:56:37 -07:00
Peli de Halleux
912e2e6159 enabling inverted menu 2016-10-14 11:32:00 -07:00
Peli de Halleux
e834ae0656 0.5.14 2016-10-14 08:04:04 -07:00
Peli de Halleux
175923fcb9 updated logos 2016-10-14 08:00:34 -07:00
Peli de Halleux
42ebdde3df 0.5.13 2016-10-14 07:48:36 -07:00
Peli de Halleux
20c63359af hiding microsoft logo 2016-10-14 07:48:23 -07:00
Peli de Halleux
841f3dc7d6 0.5.12 2016-10-14 07:35:12 -07:00
Peli de Halleux
f7377f6a21 Bump pxt-core to 0.4.57 2016-10-14 07:35:09 -07:00
Peli de Halleux
1104ab5b33 updated logos 2016-10-14 07:21:50 -07:00
Peli de Halleux
e2fe660012 towards pin placement 2016-10-14 06:46:56 -07:00
Peli de Halleux
7d4b800637 identifying and naming pins 2016-10-13 23:53:24 -07:00
Peli de Halleux
746728759d setting default locale to German 2016-10-13 10:21:56 -07:00
Peli de Halleux
3d3b9e2718 Bump pxt-core to 0.4.56 2016-10-13 10:06:10 -07:00
Matthias L. Jugel
0459cd693d 0.5.11 2016-10-13 16:58:33 +02:00
Matthias L. Jugel
9c43714126 fix dependency 2016-10-13 16:58:14 +02:00
Matthias L. Jugel
9bf7459628 0.5.10 2016-10-13 16:30:38 +02:00
Matthias L. Jugel
b52432e103 update dependency 2016-10-13 16:26:30 +02:00
Matthias L. Jugel
3ac0a060dd added pin mapping 2016-10-13 11:16:10 +02:00
Peli de Halleux
85ebbb28e3 0.5.9 2016-10-12 23:52:47 -07:00
Peli de Halleux
f69db3faf7 Bump pxt-core to 0.4.55 2016-10-12 23:52:45 -07:00
Peli de Halleux
4fc514e643 updated screen rendering 2016-10-12 23:40:33 -07:00
Peli de Halleux
7c2512e56b fixing thermometer 2016-10-12 23:30:19 -07:00
Peli de Halleux
d9eebf4a9f support for light level / thermometer simulation 2016-10-12 23:14:38 -07:00
Peli de Halleux
8af383ec56 updated svg layout 2016-10-12 22:44:05 -07:00
Matthias L. Jugel
573d7aff40 add svg with pins and connectors id-ed 2016-10-12 23:07:55 +02:00
Matthias L. Jugel
f73274803c 0.5.8 2016-10-12 18:57:05 +02:00
Matthias L. Jugel
63556ef14a update dependency 2016-10-12 18:56:51 +02:00
Matthias L. Jugel
9607183587 0.5.7 2016-10-12 18:02:23 +02:00
Matthias L. Jugel
4cca961e52 latest version with RGB led support 2016-10-12 18:02:16 +02:00
Matthias L. Jugel
c2a1668d55 Merge remote-tracking branch 'origin/master' 2016-10-12 17:54:39 +02:00
Matthias L. Jugel
7102eddc0b add color handling for LED 2016-10-12 17:54:25 +02:00
Peli de Halleux
b34884fe00 updated readme 2016-10-12 08:13:15 -07:00
Peli de Halleux
e768a4dc97 updated links 2016-10-12 08:11:05 -07:00
Peli de Halleux
8b1b1bb869 0.5.6 2016-10-12 04:50:08 -07:00
Peli de Halleux
57deb1749f Bump pxt-core to 0.4.54 2016-10-12 04:50:06 -07:00
Peli de Halleux
fb82b94f69 0.5.5 2016-10-12 04:03:19 -07:00
Peli de Halleux
d321170da9 Bump pxt-core to 0.4.53 2016-10-12 04:03:17 -07:00
Peli de Halleux
dff4f3adb3 basic motor block support 2016-10-11 22:58:53 -07:00
Peli de Halleux
5d8a1b69f6 0.5.4 2016-10-11 19:42:10 -07:00
Peli de Halleux
0b0c2c9466 merged latest pxt 2016-10-11 19:41:59 -07:00
Peli de Halleux
9319f10430 0.5.3 2016-10-11 11:43:38 -07:00
Peli de Halleux
c4787e1028 support for rgb led in simulator 2016-10-11 11:41:51 -07:00
Peli de Halleux
cb280af783 fix json in libs/hello 2016-10-11 10:13:30 -07:00
Peli de Halleux
4201cb3070 0.5.2 2016-10-11 09:34:26 -07:00
Peli de Halleux
ec7bade8f4 missed file in previous move 2016-10-11 09:21:24 -07:00
Peli de Halleux
d738d8bbf5 0.5.1 2016-10-11 09:14:47 -07:00
Peli de Halleux
a8b1e0bc04 bumping version number 2016-10-11 09:14:32 -07:00
Peli de Halleux
114b7958bc 0.4.32 2016-10-11 09:13:05 -07:00
Peli de Halleux
f45ae5950c 0.4.31 2016-10-11 09:09:25 -07:00
Peli de Halleux
4cdfaf06c0 0.4.30 2016-10-11 09:08:41 -07:00
Peli de Halleux
d48404eb37 integrated pxt-microbit 2016-10-11 09:08:31 -07:00
Peli de Halleux
f4ac599ec2 Bump pxt-core to 0.4.51 2016-10-11 09:05:10 -07:00
thinkberg
a783cdda92 0.4.29 2016-10-11 13:33:35 +02:00
thinkberg
5900c8c9f5 update dependency 2016-10-11 13:32:42 +02:00
Peli de Halleux
3911c6522d integrate pxt-microbit changes 2016-10-10 14:43:33 -07:00
Peli de Halleux
00cdb6f9f5 0.4.28 2016-10-10 13:35:54 -07:00
Peli de Halleux
df14445320 updated travis file 2016-10-10 13:34:24 -07:00
Peli de Halleux
553b692a9a 0.4.27 2016-10-10 13:19:17 -07:00
Peli de Halleux
7f2fd0dd09 positioning systemled 2016-10-10 13:16:39 -07:00
Peli de Halleux
ae6917c7b3 0.4.26 2016-10-10 13:03:20 -07:00
Peli de Halleux
5c1d9a342b updated to core v0.5.4 2016-10-10 13:03:08 -07:00
Peli de Halleux
d41724d239 0.4.25 2016-10-10 12:58:42 -07:00
Peli de Halleux
d6a006d18f Bump pxt-core to 0.4.48 2016-10-10 11:25:24 -07:00
Peli de Halleux
cace68acf4 updated hello sample 2016-10-10 11:20:25 -07:00
Matthias L. Jugel
68ef7c2fc2 fix initialization of Accelerometer (delayed in uBit.init()), enable DAL debugging 2016-10-08 15:15:01 +02:00
Matthias L. Jugel
4c502f0825 bump pxt-calliope-core dependency 2016-10-08 12:23:29 +02:00
Michal Moskal
a2f1cef9ae Merge branch 'master' of github.com:Microsoft/pxt-calliope 2016-10-07 11:39:31 -07:00
Matthias L. Jugel
e857a94e04 0.4.24 2016-10-07 18:48:34 +02:00
Peli de Halleux
42a93a1682 updated accent color 2016-10-03 18:54:07 -07:00
Michal Moskal
e983c76e2f Remove unneeded tests 2016-10-03 11:15:49 -07:00
Peli de Halleux
ced4565d5c 0.4.23 2016-10-01 15:52:41 -07:00
Peli de Halleux
2475058b94 0.4.22 2016-10-01 15:45:43 -07:00
Peli de Halleux
c6ee0db81c Bump pxt-core to 0.4.39 2016-10-01 15:45:41 -07:00
Matthias L. Jugel
1b96e6332a 0.4.21 2016-10-01 21:02:36 +02:00
Matthias L. Jugel
1ceec1d3b4 0.4.20 2016-10-01 20:59:44 +02:00
Matthias L. Jugel
2e9ddb48df 0.4.19 2016-10-01 20:58:45 +02:00
Peli de Halleux
2296220ad7 updated logos 2016-09-29 16:23:37 -07:00
Peli de Halleux
22864bd26a pointing to cloud compile service 2016-09-29 16:13:33 -07:00
Peli de Halleux
574a9e01d5 updating pinmap 2016-09-29 15:25:57 -07:00
Peli de Halleux
00278036a4 fixing pin mapping 2016-09-29 15:20:45 -07:00
Peli de Halleux
4b583e221b limited support for RGB led 2016-09-27 13:35:48 -07:00
Peli de Halleux
c88645d0cd support for AB / Shake buttons 2016-09-27 11:00:21 -07:00
Peli de Halleux
14e8eabd25 updated simulator ratio, domain names 2016-09-27 09:35:52 -07:00
Peli de Halleux
5fab789763 merging microbit 2016-09-26 22:00:04 -07:00
Peli de Halleux
33eca3c507 tweaked colors 2016-09-26 15:10:37 -07:00
Peli de Halleux
9ccfcf19d9 initial round of visual updates 2016-09-26 15:05:06 -07:00
330 changed files with 9887 additions and 1972 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

@@ -3,17 +3,12 @@ node_js:
- "5.7.0"
script:
- "node node_modules/pxt-core/built/pxt.js travis"
- "(cd libs/lang-test0; node ../../node_modules/pxt-core/built/pxt.js run)"
- "(cd libs/lang-test1; node ../../node_modules/pxt-core/built/pxt.js run)"
- "(cd libs/lang-test0; node ../../node_modules/pxt-core/built/pxt.js test)"
- "(cd libs/lang-test1; node ../../node_modules/pxt-core/built/pxt.js test)"
- "node node_modules/pxt-core/built/pxt.js testdir tests"
- "node node_modules/pxt-core/built/pxt.js uploaddoc"
- "(cd libs/hello; node ../../node_modules/pxt-core/built/pxt.js testconv https://az851932.vo.msecnd.net/files/td-converter-tests-v1.json)"
sudo: false
notifications:
email:
- touchdevelop-build@microsoft.com
- kindscript@microsoft.com
cache:
directories:
- node_modules

View File

@@ -1,11 +1,11 @@
# micro:bit target for PXT
# Calliope target for PXT
This target allow to program a [BBC micro:bit](https://www.microbit.co.uk/) using
This target allow to program a [Calliope](http://calliope.cc/) using
PXT ([Microsoft Programming Experience Toolkit](https://github.com/Microsoft/pxt)).
* [Try it live](https://pxt.microbit.org)
[![Build Status](https://travis-ci.org/Microsoft/pxt-calliope.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-calliope)
[![Build Status](https://travis-ci.org/Microsoft/pxt-microbit.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-microbit)
![](http://calliope.cc/content/1-ueber-mini/mini_board.png)
## Local server
@@ -18,8 +18,8 @@ The following commands are a 1-time setup after synching the repo on your machin
* if not yet installed, install [Node.js 4.4.5 or higher](https://nodejs.org/en/download/)
* [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-microbit
cd pxt-microbit
git clone https://github.com/microsoft/pxt-calliope
cd pxt-calliope
```
* install the PXT command line (add ``sudo`` for Mac/Linux shells).
```
@@ -32,14 +32,15 @@ npm install
### Running
Run this command to open a local web server (add ``sudo`` for Mac/Linux shells)
Run this command to open a local web server (add ``sudo`` for Mac/Linux shells).
```
pxt serve
```
If the local server opens in the wrong browser, make sure to copy the URL containing the local token.
Otherwise, the editor will not be able to load the projects.
If you need modify the `.cpp` files, turn on yotta compilation with the ``-yt`` flag (add ``sudo`` for Mac/Linux shells):
If you need modify the `.cpp` files, turn on yotta compilation with the ``-yt`` flag (add ``sudo`` for Mac/Linux shells). On Windows, you must be running
from the ``Run Yotta`` command prompt.
```
pxt serve -yt
```
@@ -61,7 +62,6 @@ The build automatically runs the following:
* `pxt run` in `libs/lang-test*` - this will run the test in command line runner;
there is a number of asserts in both of these
* `pxt testdir` in `tests` - this makes sure all the files compile and generates .hex files
* run the TD->TS converter on a number of test scripts from `microbit.co.uk` and make sure the results compile
To test something on the device:

View File

@@ -11,8 +11,8 @@
"author": "Microsoft Corporation",
"short_name": "code the micro:bit",
"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

@@ -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,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, targetVersion: pxtConfig.targetId + '/' + 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, targetVersion: pxtConfig.targetId + '/' + pxtConfig.targetVersion });
</script>

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

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

View File

@@ -2,33 +2,4 @@
### @description Frequently asked questions and answers from our users.
### Where can I get a BBC micro:bit?
More information at [http://uk.farnell.com/bbc-microbit](http://uk.farnell.com/bbc-microbit).
### How do I send feedback?
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.
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

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

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

View File

@@ -41,8 +41,8 @@ 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);
```

View File

@@ -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."
```
@@ -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,14 +93,14 @@ 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;
```

View File

@@ -6,43 +6,43 @@ a game similar to "Simon Says" with the BBC micro:bit.
Complete the following guided tutorial. Your code should look like this:
```blocks
newAction() // ***
```typescript
let action = 0;
function newAction() {}
input.onButtonPressed(Button.A, () => {
if (action == 0) {
game.addScore(1) // ***
newAction() // ***
game.addScore(1);
newAction();
}
}) // ***
})
input.onLogoDown(() => {
if (action == 1) {
game.addScore(1) // ***
newAction()
game.addScore(1);
newAction();
}
})
input.onGesture(Gesture.Shake, () => {
if (action == 2) {
game.addScore(1)
newAction()
game.addScore(1);
newAction();
}
})
input.onButtonPressed(Button.B, () => {
basic.showNumber(game.score(), 150) // ***
basic.pause(2000) // ***
newAction() // ***
basic.showNumber(game.score(), 150);
basic.pause(2000);
newAction();
})
```
### Challenge 1
Now let's add some more types of instructions for the player to follow. Let's add `PRESS PIN 0`. Change the global variable `action` to `math->random(4)` so that we can add a new **IF** statement that checks if `action=3`. If it does, display instructions to press pin 0.
Now let's add some more types of instructions for the player to follow. Let's add `PRESS PIN 0`.
Change the global variable `action` to `math->random(4)` so that we can add a new **IF** statement that checks if `action=3`. If it does, display instructions to press pin 0.
```blocks
/**
* {highlight}
*/
```typescript
let action = 0;
export function newAction() {
action = Math.random(4) // ***
action = Math.random(4)
if (action == 0) {
basic.showString("PUSH A", 150) // ***
}
@@ -62,19 +62,22 @@ export function newAction() {
Now let's implement `PRESS PIN 0` in the main. Create a condition of `input->on pin pressed("P0")` that will add one to the score and calls the method `new action`.
```blocks
// **. . .**
```typescript
let action = 0;
export function newAction() {
// ...
}
input.onButtonPressed(Button.B, () => {
basic.showNumber(game.score(), 150) // ***
basic.pause(2000) // ***
newAction() // ***
}) // ***
basic.showNumber(game.score(), 150)
basic.pause(2000)
newAction()
})
input.onPinPressed(TouchPin.P0, () => {
if (action == 3) {
game.addScore(1) // ***
newAction() // ***
game.addScore(1)
newAction()
}
}) // ***
})
```
### Challenge 3

View File

@@ -88,5 +88,5 @@ Have fun reviewing your simulation and analyze the acceleration by chart the Exc
* Display acceleration with y or z using plot bar graph by changing acceleration from "x" to "y" or "z"
```package
microbit-radio
radio
```

View File

@@ -29,6 +29,7 @@ Write the line of code that will display the string "puppy" using `data->coll`.
<br/>
```blocks
let coll: string[] = []
basic.showString(coll[0], 150)
```
@@ -46,6 +47,7 @@ Write the line of code that will display the string "cat" using `data->coll`.
<br/>
```blocks
let coll: string[] = []
basic.showString(coll[2], 150)
```

View File

@@ -44,5 +44,5 @@ radio.onDataReceived(() => { })
* learn how to pause your code for the specified number of milliseconds
```package
microbit-radio
radio
```

View File

@@ -164,5 +164,5 @@ Connect the second micro:bit to your computer using your USB cable and run the p
The first person and second person take turns jumping in the “y” direction while the other player uses the micro:bit to track the results on the micro:bit!
```package
microbit-radio
radio
```

View File

@@ -35,5 +35,5 @@ radio.receiveNumber();
* learn how to read the connector value as analog as a value comprised between 0 and 1023
```package
microbit-radio
radio
```

View File

@@ -196,5 +196,5 @@ Let's select Style 10 as an example.
* Review and analyze the actual micro:bit device acceleration data on Excel
```package
microbit-radio
radio
```

View File

@@ -25,8 +25,9 @@ let randomArrow = Math.random(4)
<br/>
```blocks
let randomArrow = Math.random(4);
if (randomArrow == 1) {
basic.plotImage(`
basic.showLeds(`
. . # . .
. . # . .
# # # # #
@@ -43,8 +44,9 @@ if (randomArrow == 1) {
<br />
```blocks
let randomArrow = Math.random(4);
if (randomArrow == 2) {
basic.plotImage(`
basic.showLeds(`
. . # . .
. . # # .
# # # # #

View File

@@ -70,6 +70,19 @@ Fun games to build with your micro:bit.
}]
```
## From the community
Projects contributed by the micro:bit community
```codecard
[{
"name": "Magic Button Trick",
"url":"/projects/magic-button-trick",
"imageUrl":"/static/mb/projects/magic-button-trick.png"
}]
```
### See Also
[Flashing Heart](/projects/flashing-heart), [Smiley Buttons](/projects/smiley-buttons), [Love Meter](/projects/love-meter), [Rock Paper Scissors](/projects/rock-paper-scissors), [Compass](/projects/compass), [Hack your headphones](/projects/hack-your-headphones), [Banana keyboard](/projects/banana-keyboard), [Telegraph](/projects/telegraph), [Radio](/projects/radio), [Guitar](/projects/guitar), [Watch](/projects/the-watch)

View File

@@ -21,7 +21,7 @@ Build your own music player micro:bit from headphones.
## Activities
* [Connect your headphone](/projects/hack-your-headphone/making)
* [Connect your headphone](/projects/hack-your-headphones/making)
* [Play sounds!]()
# ~hint

View File

@@ -0,0 +1,101 @@
# magic button trick
Perform a magic trick where you appear to make the **A** and **B** button of your micro:bit swap over just by moving a sticky label.
### ~avatar avatar
Welcome! This activity will teach you how to use the micro:bit's compass to detect a nearby magnet
### ~
This is a simple magic trick you can perform to amaze your friends, where by moving the sticky labels on your micro:bit's **A** and **B** button you appear to make the buttons really switch over. To see the trick performed watch the video below.
https://youtu.be/-9KvmPopov8
## How the trick works
Unfortunately, the only magic here is in the code. This trick uses a magnet, hidden in your hand, to tell the micro:bit to swap over the buttons so that when the magnet is near the microbit the **A** button starts working like the **B** button and the **B** button starts working like the **A** button.
## What you need
The only things you need for this trick are your micro:bit and any magnet that is small enough to fit in your hand, even a fridge magnet will work.
![](/static/mb/projects/magic-button-trick/magnets.jpg "Magnets")
## Step 1: getting the buttons to display **A** and **B**
Before we code the trick itself, we need to get the buttons working as you would expect them to so that pressing button **A** displays 'A' and pressing button **B** displays 'B':
```blocks
input.onButtonPressed(Button.A, () => {
basic.showString("A")
})
input.onButtonPressed(Button.B, () => {
basic.showString("B")
})
```
## Step 2: measuring magnetic force
We will use the micro:bit's compass to detect the magnet. Compass's tell us what direction we are pointing by detecting the Earth's magnetic field but they can also detect any other magnet nearby. We will use that to check if our magnet is next to the micro:bit by using the [magnetic force](/reference/input/magnetic-force) block found in the input menu's 'more' section. As we only want to measure the strength we change the drop down to select 'strength':
```blocks
input.magneticForce(Dimension.Strength)
```
## Step 3: checking if the magnetic is nearby
Now we can measure the magnetic force near the microbit, we can check if the value we measure is so big that it means there must be a strong magnet nearby.
If you have ever played with magnets you know they have two ends, often called a north and south 'pole'. Depending on which end of the magnet is pointing at the microbit the magnetic force measurement will either be a negative number like -100 or a positive number like 100. We just want to know if the strength is at least 100 we don't care if its negative or positive so we also use the 'absolute value of' block from the maths menu to tell our code to ignore the negative sign and just treat -100 as if its 100.
So in the code below we will check if the absolute value of our magnetic field strength reading is more than 100 and save the result of that check in a new variable called 'isSwitched':
```blocks
let isSwitched = Math.abs(input.magneticForce(Dimension.Strength)) > 100
```
## Step 4: running our 'magnet nearby' check all the time
At the moment our code to detect the magnet being nearby will only run once so we need to put it into a [forever](/reference/basic/forever) block so that it keeps getting run again and again checking for the magnet to come near to the micro:bit. We should also make sure 'isSwitched' is false when our program starts.
```blocks
let isSwitched = false;
basic.forever(() => {
let isSwitched = Math.abs(input.magneticForce(Dimension.Strength)) > 100
})
```
## Step 5: swapping the buttons when we know the magnet is nearby
Now we can check the value of our variable 'isSwitched' whenever we want and we will know that the magnet is nearby if it's value is 'true'. Let's use that to change how the buttons work and complete the code for our trick. We will add an 'if, else' block to each button's code and check if we should swap over what each button displays because 'isSwitched' is equal to true:
```blocks
let isSwitched = false;
basic.forever(() => {
isSwitched = Math.abs(input.magneticForce(Dimension.Strength)) > 100
})
input.onButtonPressed(Button.A, () => {
if (isSwitched) {
basic.showString("B")
} else {
basic.showString("A")
}
})
input.onButtonPressed(Button.B, () => {
if (isSwitched) {
basic.showString("A")
} else {
basic.showString("B")
}
})
```
## step 5: practice your performance
Now you just need to program your own micro:bit and practice the trick a few times before performing to friends. Try asking your friends to click the buttons after you have switched the labels and the trick won't work for them as they don't have a hidden magnet in their hand.
## about the authors
This project was contributed by Brian and Jasmine Norman, aka [@MicroMonstersUK](https://twitter.com/MicroMonstersUK). You can chekout their [micro:bit tutorials chanel on youtube](https://www.youtube.com/channel/UCK2DviDexh_Er2QYZerZyZQ) for more projects.

View File

@@ -61,5 +61,5 @@ radio.onDataReceived(() => {
```package
microbit-radio
radio
```

View File

@@ -90,5 +90,5 @@ Have fun reviewing your simulation and analyze the acceleration by chart the Exc
* Display acceleration with y or z using plot bar graph by changing acceleration from "x" to "y" or "z"
```package
microbit-radio
radio
```

View File

@@ -8,7 +8,6 @@ We now need to digitally write to pin ``P0`` as **high** (1).
```blocks
pins.digitalWritePin(DigitalPin.P0, 1)
```
### Step 2
@@ -19,7 +18,6 @@ So insert the appropriate LED plot x, y.
```blocks
pins.digitalWritePin(DigitalPin.P0, 1)
led.plot(2, 2)
```
### Step 3
@@ -31,9 +29,7 @@ Then add a condition that occurs if we do not turn on a LED with plot x, y. We a
if (input.buttonIsPressed(Button.A)) {
pins.digitalWritePin(DigitalPin.P0, 1)
led.plot(2, 2)
} else {
}
} else { }
```
@@ -63,7 +59,8 @@ basic.forever(() => {
} else {
pins.digitalWritePin(DigitalPin.P0, 0)
led.unplot(2, 2)
})
}
})
```
### Step 6
@@ -87,9 +84,6 @@ basic.forever(() => {
basic.clearScreen();
}
});
```
Your telegraph is ready!

View File

@@ -87,7 +87,7 @@ The gate is ready to use! Your circuit should look like the picture below:
## Detecting the car with code
The micro:bit provides an event [on pin pressed](/reference/pins/on-pin-pressed)
The micro:bit provides an event [on pin pressed](/reference/input/on-pin-pressed)
that is raised when a circuit between ``GND`` and a pin is detected. The circuit conductor could be a wire or even your body!
We will attach a foil to the bottom of the car. When it passes over the gate, it connect both foil strips, close the circuit and trigger the event.
@@ -146,7 +146,7 @@ Connect the crocodile plugs to the ``GND`` and ``P1`` pins on the micro:bit.
## Detecting the second gate
Since the second gate is connected to pin ``P1``, we add a second [on pin pressed](/reference/pins/on-pin-pressed) event
Since the second gate is connected to pin ``P1``, we add a second [on pin pressed](/reference/input/on-pin-pressed) event
that display 2 columns of LEDs.
```blocks

View File

@@ -37,9 +37,9 @@ bluetooth.onBluetoothConnected(() => {});
```
```package
microbit-radio
microbit-devices
microbit-bluetooth
radio
devices
bluetooth
```
### See Also

View File

@@ -35,4 +35,6 @@ basic.showAnimation(`
### See Also
[showNumber](/reference/basic/show-number), [showLeds](/reference/basic/show-leds), [showString](/reference/basic/show-string), [clearScreen](/reference/basic/clear-screen), [forever](/reference/basic/forever), [pause](/reference/basic/pause), [plotLeds](/reference/basic/plot-leds), [showAnimation](/reference/basic/show-animation)
[showNumber](/reference/basic/show-number), [showLeds](/reference/basic/show-leds), [showString](/reference/basic/show-string),
[clearScreen](/reference/basic/clear-screen), [forever](/reference/basic/forever), [pause](/reference/basic/pause),
[showAnimation](/reference/basic/show-animation)

View File

@@ -32,7 +32,7 @@ bluetooth.uartWriteValue("", 0);
```
```package
microbit-bluetooth
bluetooth
```
### Advanced

View File

@@ -95,5 +95,5 @@ https://www.youtube.com/watch?v=aep_GVowKfs
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -96,5 +96,5 @@ If you do find yourself needing to pair again you will first need to remove the
```package
microbit-bluetooth
bluetooth
```

View File

@@ -33,5 +33,5 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -33,5 +33,5 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -38,5 +38,5 @@ For more advanced information on the micro:bit Bluetooth accelerometer service i
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -42,5 +42,5 @@ For more advanced information on the micro:bit Bluetooth button service includin
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -36,5 +36,5 @@ For more advanced information on the micro:bit Bluetooth IO pin service includin
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -38,5 +38,5 @@ For more advanced information on the micro:bit Bluetooth LED service including i
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -39,5 +39,5 @@ For more advanced information on the micro:bit Bluetooth magnetometer service in
```package
microbit-bluetooth
bluetooth
```

View File

@@ -39,6 +39,6 @@ For more advanced information on the micro:bit Bluetooth temperature service inc
```package
microbit-bluetooth
bluetooth
```

View File

@@ -40,5 +40,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -7,7 +7,7 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
### ~
The [Bluetooth UART service](start-uart-service.md) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
The [Bluetooth UART service](/reference/bluetooth/start-uart-service) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
With the Bluetooth UART service running, this block allows a micro:bit to read data which has been received from a Bluetooth connected device, terminating reading and returning the value obtained as soon as a specified delimiter character is encountered. This means that connected devices can send data to the micro:bit and indicate that the complete message has been sent by appending the message with the delimiter character.
@@ -48,5 +48,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -7,7 +7,7 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
### ~
The [Bluetooth UART service](/reference/bluetooth/start-uart-service.md) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
The [Bluetooth UART service](/reference/bluetooth/start-uart-service) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
With the Bluetooth UART service running, this block allows a micro:bit to send data to a Bluetooth connected device.
@@ -24,5 +24,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -7,7 +7,7 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
### ~
The [Bluetooth UART service](/reference/bluetooth/start-uart-service.md) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
The [Bluetooth UART service](/reference/bluetooth/start-uart-service) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
With the Bluetooth UART service running, this block allows a micro:bit to send data to a Bluetooth connected device.
@@ -47,5 +47,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -7,7 +7,7 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
### ~
The [Bluetooth UART service](/reference/bluetooth/start-uart-service.md) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
The [Bluetooth UART service](/reference/bluetooth/start-uart-service) allows another device such as a smartphone to exchange any data it wants to with the micro:bit, in small chunks.
With the Bluetooth UART service running, this block allows a micro:bit to send data to a Bluetooth connected device.
@@ -24,5 +24,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
```package
microbit-bluetooth
bluetooth
```

View File

@@ -19,7 +19,7 @@ devices.onSignalStrengthChanged(() => {
```
```package
microbit-devices
devices
```
### See Also

View File

@@ -23,5 +23,5 @@ devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength), [on signal strength changed](/reference/devices/on-signal-strength-changed)
```package
microbit-devices
devices
```

View File

@@ -34,5 +34,5 @@ devices.onNotified(MesDeviceInfo.IncomingCall, () => {
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)
```package
microbit-devices
devices
```

View File

@@ -34,5 +34,5 @@ devices.onSignalStrengthChanged(() => {
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)
```package
microbit-devices
devices
```

View File

@@ -62,5 +62,5 @@ devices.raiseAlertTo("ring alarm")
[tell remote control to](/reference/devices/tell-remote-control-to), [tell camera to](/reference/devices/tell-camera-to)
```package
microbit-devices
devices
```

View File

@@ -33,5 +33,5 @@ devices.onSignalStrengthChanged(() => {
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on signal strength changed](/reference/devices/on-signal-strength-changed)
```package
microbit-devices
devices
```

View File

@@ -73,5 +73,5 @@ devices.tellCameraTo("stop video mode")
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to)
```package
microbit-devices
devices
```

View File

@@ -86,5 +86,5 @@ devices.tellRemoteControlTo("volume down")
```package
microbit-devices
devices
```

View File

@@ -42,4 +42,4 @@ input.onShake(() => {
### See Also
[onButtonPressed](/reference/input/on-button-pressed), [onGesture](/reference/input/on-gesture), [onPinPressed](/reference/input/on-pin-pressed), [buttonIsPressed](/reference/input/button-is-pressed), [compassHeading](/reference/input/compass-heading), [pinIsPressed](/reference/input/pin-is-pressed), [temperature](/reference/input/temperature), [acceleration](/reference/input/acceleration), [lightLevel](/reference/input/light-level), [rotation](/reference/input/rotation), [magneticForce](/reference/input/magnetic-force), [runningTime](/reference/input/running-time), [setAccelerometerRange](/reference/input/set-accelerometer-range), [calibrate](/reference/input/calibrate), [onLogoDown](/reference/input/on-logo-down), [onLogoUp](/reference/input/on-logo-up), [onScreenDown](/reference/input/on-screen-down), [onScreenUp](/reference/input/on-screen-up), [onShake](/reference/input/on-shake)
[onButtonPressed](/reference/input/on-button-pressed), [onGesture](/reference/input/on-gesture), [onPinPressed](/reference/input/on-pin-pressed), [buttonIsPressed](/reference/input/button-is-pressed), [compassHeading](/reference/input/compass-heading), [pinIsPressed](/reference/input/pin-is-pressed), [temperature](/reference/input/temperature), [acceleration](/reference/input/acceleration), [lightLevel](/reference/input/light-level), [rotation](/reference/input/rotation), [magneticForce](/reference/input/magnetic-force), [runningTime](/reference/input/running-time), [setAccelerometerRange](/reference/input/set-accelerometer-range)

View File

@@ -33,12 +33,12 @@ basic.forever(() => {
This program measures the temperature using Fahrenheit degrees.
Fahrenheit is a way of measuring temperature that is commonly used in the United States.
To make a Celsius temperature into a Fahrenheit one, multiply the Celsius temperature by
1.8 and add 32.
``18``, divide by ``10`` and add ``32``.
```blocks
basic.forever(() => {
let c = input.temperature()
let f = (c * 1.8) + 32
let f = (c * 18) / 10 + 32
basic.showNumber(f)
})
```

View File

@@ -6,7 +6,6 @@ Generation of music tones through pin ``P0``.
music.playTone(0, 0);
music.ringTone(0);
music.rest(0);
music.noteFrequency(Note.C);
music.beat(BeatFraction.Whole);
music.tempo();
music.changeTempoBy(20);
@@ -15,4 +14,4 @@ music.setTempo(120);
### See Also
[playTone](/reference/music/play-tone), [ringTone](/reference/music/ring-tone), [rest](/reference/music/rest), [noteFrequency](/reference/music/note-frequency), [beat](/reference/music/beat), [tempo](/reference/music/tempo), [changeTempoBy](/reference/music/change-tempo), [setTempo](/reference/music/set-tempo)
[playTone](/reference/music/play-tone), [ringTone](/reference/music/ring-tone), [rest](/reference/music/rest), [beat](/reference/music/beat), [tempo](/reference/music/tempo), [changeTempoBy](/reference/music/change-tempo-by), [setTempo](/reference/music/set-tempo)

View File

@@ -0,0 +1,30 @@
# Beat
Returns the duration of a beat in milli-seconds
## Simulator
This function only works on the micro:bit and in some browsers.
```sig
music.beat(BeatFraction.Whole)
```
### Parameters
* ``BeatFraction`` means fraction of a beat (BeatFraction.Whole, BeatFraction.Sixteenth etc)
### Returns
* a [number](/reference/types/number) that means the amount of milli-seconds a beat fraction represents.
## Example
```blocks
music.playTone(Note.C, music.beat(BeatFraction.Quarter))
```
### See also
[play tone](/reference/music/play-tone), [ring tone](/reference/music/ring-tone), [rest](/reference/music/rest), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by)

View File

@@ -26,4 +26,4 @@ pins.analogSetPitchPin(AnalogPin.P0);
### See Also
[digitalReadPin](/reference/pins/digital-read-pin), [digitalWritePin](/reference/pins/digital-write-pin), [analogReadPin](/reference/pins/analog-read-pin), [analogWritePin](/reference/pins/analog-write-pin), [analogSetPeriod](/reference/pins/analog-set-period), [map](/reference/pins/map), [onPulsed](/reference/pins/on-pulsed), [pulseDuration](/reference/pins/pulse-duration), [pulseIn](/reference/pins/pulse-in), [servoWritePin](/reference/pins/servo-write-pin), [servoSetPulse](/reference/pins/servo-set-pulse), [i2cReadNumber](/reference/pins/i2c-read-number), [i2cWriteNumber](/reference/pins/i2c-write-number), [setPull](/reference/pins/set-pull), [analogPitch](/reference/pins/analog-pitch), [analogSetPitchPin](/reference/pins/analog-set-pitch), [spiWrite](/reference/pins/spi-write)
[digitalReadPin](/reference/pins/digital-read-pin), [digitalWritePin](/reference/pins/digital-write-pin), [analogReadPin](/reference/pins/analog-read-pin), [analogWritePin](/reference/pins/analog-write-pin), [analogSetPeriod](/reference/pins/analog-set-period), [map](/reference/pins/map), [onPulsed](/reference/pins/on-pulsed), [pulseDuration](/reference/pins/pulse-duration), [pulseIn](/reference/pins/pulse-in), [servoWritePin](/reference/pins/servo-write-pin), [servoSetPulse](/reference/pins/servo-set-pulse), [i2cReadNumber](/reference/pins/i2c-read-number), [i2cWriteNumber](/reference/pins/i2c-write-number), [setPull](/reference/pins/set-pull), [analogPitch](/reference/pins/analog-pitch), [analogSetPitchPin](/reference/pins/analog-set-pitch-pin), [spiWrite](/reference/pins/spi-write)

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