Some edits to the 'light monster' project

This commit is contained in:
ganicke
2017-12-05 15:59:36 -08:00
parent efda8290cf
commit e8eb7a9d4e
4 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,6 @@
# Code
## @description code to make the coffee cup monster alive
## @description Code to make the light monster come alive
## ~avatar avatar
@ -9,8 +10,7 @@ Add code to open the mouth when light is detected.
## Duration: ~30 minutes
We are going to add code to open the mouth proportionally to the amount of light on the @boardname@.
In a loop, we will read the light and map it to an angle using the ``pins.map`` function.
We are going to add code to open the mouth proportionally to the amount of light on the @boardname@. The code is in a loop so we'll continually read the light level and map it to an angle using the ``||pins:map||`` function.
```blocks
basic.forever(() => {