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 3d17da5 commit a87c005Copy full SHA for a87c005
Ev3LangScalaExample/src/ev3dev4s/examples/FiveXHelloWorld.scala
@@ -0,0 +1,17 @@
1
+package ev3dev4s.examples
2
+
3
+import ev3dev4s.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.setLedsTo(Display.LedColor.Orange)
11
+ Log.log("Hello World")
12
+ Display.write("Hello World",1)
13
+ Sound.speak("Hello World")
14
+ Sound.playBeep(200.Hz,100.ms)
15
+ Display.setLedsTo(Display.LedColor.Green)
16
+ }
17
+}
0 commit comments