Some edits to the 'light monster' project
This commit is contained in:
@ -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(() => {
|
||||
|
Reference in New Issue
Block a user