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 in, the indents are important. Click on the Python block to load the code. | |||
[[File:2tone python.jpg]] | [[File:2tone python.jpg]] | ||