diff --git a/README.md b/README.md index 52bb285..60f7d57 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,30 @@ Because everyone loves rainbows, the Gigglebot can smile at you in rainbow color ![Makecode for a rainbow](https://raw.githubusercontent.com/DexterInd/pxt-giggle/master/images/rainbow_3sec.png) +### Following a line +The GiggleBot comes with two line sensors that allows it to follow either a thin line or a thick line. The thin line is thin enough to fit between the two sensors, while the thick line is thick enough that both sensors will fit within the line. + +![Follow a thick line](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/follow_line.png) + +### Reading the line sensors + +You can also access the line sensors values directly. This allows you to write a line follower logic that is tailored to your specific needs. + +![Read Line Sensor Value](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/line_sensor_value.png) + +### Following a light + +The GiggleBot comes with two light sensors that allows it to follow a light, a little bit like a cat would. Shine a flashlight onto one eye will get the GiggleBot to turn in that direction. + +![Follow Light](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/follow_light.png) + +### Reading the light sensor values + +You can also read the light sensors values directly in order to implement a different behaviour, like having the GiggleBot fall asleep when it gets dark, and wake up when there's light. + +![Falls Asleep when dark](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/light_sensor_falls_asleep.png) + + ### Using the distance sensor This piece of code will start the Gigglebot forward when button A is pressed. At all times, the distance sensor displays the distance to an obstacle onto the smile and will stop the Gigglebot if the obstacle is closer than 10 cm. diff --git a/pxt.json b/pxt.json index fed5670..9b62a9d 100644 --- a/pxt.json +++ b/pxt.json @@ -1,11 +1,11 @@ { "name": "giggle", - "version": "v0.1.3", + "version": "v0.1.4", "dependencies": { "core": "*", "radio": "*", "neopixel": "github:microsoft/pxt-neopixel#v0.6.7", - "gigglebot": "github:dexterind/pxt-gigglebot#v0.1.3" + "gigglebot": "github:dexterind/pxt-gigglebot#v0.1.4" }, "description": "GiggleBot is a microbit rover by Dexter Industries, it offers a total of 9 neopixels, 2 line sensors, 2 light sensors, and 2 servos", "files": [