Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions
Tonyforster (talk | contribs) |
Tonyforster (talk | contribs) |
||
| Line 142: | Line 142: | ||
[[File:2tone python.jpg]] | [[File:2tone python.jpg]] | ||
How it works: the 1000 and 1100 blocks are input x in the Python code. The -f option in speaker-test is the frequency, {0} gets replaced by x which in turn are replaced by 1000 or 1100 so speakertest is sent either -f 1000 or -f 1100 giving frequencies of 1000 Hz or 1100 Hz. | |||
==Links== | ==Links== | ||