Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions
Tonyforster (talk | contribs) |
Tonyforster (talk | contribs) |
||
| Line 141: | Line 141: | ||
[[File:Doorbell.jpg]] | [[File:Doorbell.jpg]] | ||
The Python Code Block [[File:Pythoncodeblock.jpg]] is used to sound an alarm in your loudspeakers. | The Python Code Block [[File:Pythoncodeblock.jpg|50px]] is used to sound an alarm in your loudspeakers. | ||
You need to type the following into Pippy and save to the Journal. Type it exactly as shown, the indents on the last 3 lines are important, for the characters '-l 1' the first is an 'el' and the second a 'one'. | You need to type the following into Pippy and save to the Journal. Type it exactly as shown, the indents on the last 3 lines are important, for the characters '-l 1' the first is an 'el' and the second a 'one'. | ||
| Line 147: | Line 147: | ||
[[File:Doorbell python.jpg]] | [[File:Doorbell python.jpg]] | ||
Then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg]] into the Python Code Block [[File:Pythoncodeblock.jpg]] , then run your program. | Then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg|30px]] into the Python Code Block [[File:Pythoncodeblock.jpg|50px]] , then run your program. | ||
<b>Two-tone alarm</b> | <b>Two-tone alarm</b> | ||