Changes
Page history
u4099 created page: Template
authored
Mar 02, 2015
by
Daniel Jung Moltzen
Hide whitespace changes
Inline
Side-by-side
Lesson3Week5.markdown
View page @
2f4520f3
...
@@ -83,14 +83,6 @@ We are planning to do this by looking at the leJos tutorial on how to use a Butt
...
@@ -83,14 +83,6 @@ We are planning to do this by looking at the leJos tutorial on how to use a Butt
#### Results
#### Results
```
```
import lejos.nxt.*;
/**
* The locomotions of a LEGO 9797 car is controlled by
* sound detected through a microphone on port 1.
*
* @author Ole Caprani
* @version 23.08.07
*/
public class SoundCtrCar
public class SoundCtrCar
{
{
private static int soundThreshold = 90;
private static int soundThreshold = 90;
...
@@ -111,7 +103,7 @@ public class SoundCtrCar
...
@@ -111,7 +103,7 @@ public class SoundCtrCar
```
```
#### Conclusion
#### Conclusion
As seen in the above code snippet we implemented a ButtonListener that didn't interfere with anything else.
### Exercise 5 - Clap Controlled Car
### Exercise 5 - Clap Controlled Car
...
...
...
...