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 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) 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. #### ~ diff --git a/package.json b/package.json index ad22fb76..4014b12b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.186", + "version": "0.2.190", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript", @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.194" + "pxt-core": "0.2.200" } }