We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87c005 commit 7c3b061Copy full SHA for 7c3b061
Ev3LangScalaExample/src/ev3dev4s/examples/FiveXHelloWorld.scala
@@ -1,17 +1,20 @@
1
package ev3dev4s.examples
2
3
-import ev3dev4s.Log
+import ev3dev4s.{Ev3System, Log}
4
import ev3dev4s.lego.{Display, Sound}
5
import ev3dev4s.scala2measure.Conversions.IntConversions
6
7
//noinspection ScalaUnusedSymbol
8
object FiveXHelloWorld extends Runnable {
9
override def run(): Unit = {
10
+ Display.clearLcd()
11
Display.setLedsTo(Display.LedColor.Orange)
12
Log.log("Hello World")
- Display.write("Hello World",1)
13
+ Display.write("Hello World",0)
14
Sound.speak("Hello World")
15
Sound.playBeep(200.Hz,100.ms)
16
Display.setLedsTo(Display.LedColor.Green)
17
+ Display.write("Push Button",3)
18
+ Ev3System.keyPad.blockUntilAnyKey()
19
}
20
0 commit comments