From a51a14022ab6e29870eac0ef0e2289d48a6ca899 Mon Sep 17 00:00:00 2001 From: Jonathan Protzenko Date: Thu, 21 Jul 2016 16:25:20 -0700 Subject: [PATCH 01/11] Update analog-pitch.md --- docs/reference/pins/analog-pitch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/pins/analog-pitch.md b/docs/reference/pins/analog-pitch.md index b229875c..d42308b9 100644 --- a/docs/reference/pins/analog-pitch.md +++ b/docs/reference/pins/analog-pitch.md @@ -1,6 +1,6 @@ # Analog Pitch -Emits a Pulse With Modulation (PWM) signal to the current pitch [pin](/device/pins). Use [analog set pitch pin](/reference/pins/analog-set-pitch-pin) to set the pitch pin. +Emits a Pulse With Modulation (PWM) signal to the current pitch [pin](/device/pins). Use [analog set pitch pin](/reference/pins/analog-set-pitch-pin) to set the current pitch pin. ```sig pins.analogPitch(440, 300) From ead4d32446c564a0245aeb55a47d3302439065ee Mon Sep 17 00:00:00 2001 From: Jonathan Protzenko Date: Thu, 21 Jul 2016 16:36:33 -0700 Subject: [PATCH 02/11] Update analog-read-pin.md --- docs/reference/pins/analog-read-pin.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/reference/pins/analog-read-pin.md b/docs/reference/pins/analog-read-pin.md index c9b87526..35ded767 100644 --- a/docs/reference/pins/analog-read-pin.md +++ b/docs/reference/pins/analog-read-pin.md @@ -28,9 +28,7 @@ basic.forever(() => { #### ~hint -If you are using **analog read pin** with another micro:bit -running **analog write pin**, it is a good idea to check -**analog read pin** many times and then take an average. +If you are using **analog read pin** with another micro:bit running **analog write pin**, then things can get tricky. Remember that the micro:bit that runs **analog set pin** writes 0's and 1's at a very high frequency to achieve an average of the desired value. Sadly, if you try to read that average from another micro:bit, then the micro:bit will either read 0 or 1023. You could try to read a higher number of values (e.g. a million) in a loop, then computer then average. Alternatively, you can plug in a capacitor in-between the two micro:bits. #### ~ From 7dcd770508927a1812162cee5de93420506512e8 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 11:32:57 +0100 Subject: [PATCH 03/11] Cache sources for testconv in travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 08b12ffb..af38511e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,5 @@ cache: directories: - node_modules - built/cache + - libs/hello/built/cache From 5123a962d9012e9e14ec9eed459613785626b745 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 11:39:39 +0100 Subject: [PATCH 04/11] Bump pxt-core to 0.2.196 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ad22fb76..aaefed11 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.194" + "pxt-core": "0.2.196" } } From aa380baf1cd34a72f78dd142d8d1a8f9079cfed2 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 11:39:39 +0100 Subject: [PATCH 05/11] 0.2.187 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aaefed11..e734c60d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.186", + "version": "0.2.187", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript", From 004d34b5df64bda48a77b3857fdc8433d7817aa8 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 11:57:15 +0100 Subject: [PATCH 06/11] Bump pxt-core to 0.2.197 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e734c60d..f9339ae0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.196" + "pxt-core": "0.2.197" } } From ed07f0baad261f19fb8cd08523bb8e3f6d0fee30 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 11:57:15 +0100 Subject: [PATCH 07/11] 0.2.188 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f9339ae0..74584ab8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.187", + "version": "0.2.188", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript", From 0b4dd534ab7a6c2c007769a53f92fd3a82343047 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 12:12:20 +0100 Subject: [PATCH 08/11] Bump pxt-core to 0.2.199 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74584ab8..f3cc1ffa 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.197" + "pxt-core": "0.2.199" } } From 6e4a71b2f4f4cd63ff962c337c0ec18899ca9aa5 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 12:12:21 +0100 Subject: [PATCH 09/11] 0.2.189 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f3cc1ffa..a80ec85c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.188", + "version": "0.2.189", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript", From d0357137868c4f495fd5782643829d5b063d32f4 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 12:26:13 +0100 Subject: [PATCH 10/11] Bump pxt-core to 0.2.200 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a80ec85c..ba66161d 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.199" + "pxt-core": "0.2.200" } } From 3e37b0380802c77e49d2b16b75addf50e2d63f5c Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 22 Jul 2016 12:26:13 +0100 Subject: [PATCH 11/11] 0.2.190 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba66161d..4014b12b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.189", + "version": "0.2.190", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript",