Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions
Tonyforster (talk | contribs) |
Tonyforster (talk | contribs) |
||
| Line 515: | Line 515: | ||
The Python Code Block [[File:Pythoncodeblock.jpg|50px]] is used to sound a tone in the loudspeaker, the pitch identifies the key pressed. | The Python Code Block [[File:Pythoncodeblock.jpg|50px]] is used to sound a tone in the loudspeaker, the pitch identifies the key pressed. | ||
The following code is now a built in sample, <i>sinewave.py</i>. If typing it | The following code is now a built in sample, <i>sinewave.py</i>. If typing it into Pippy, the indents are important. Click on the Python block to load the code. | ||
def myblock(lc, x): | def myblock(lc, x): | ||