You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow the link:https://le-www-live-s.legocdn.com/sc/media/lessons/mindstorms-ev3/building-instructions/ev3-rem-driving-base-79bebfc16bd491186ea9c9069842155e.pdf[link] to build the Base Robot.
68
+
69
+
70
+
*MyFirstRobot.java*
45
71
46
72
[source,java]
47
73
----
48
74
include::MyFirstRobot.java[]
49
75
----
50
76
51
-
The example was designed to move a mobile robot with 2 motors connected to Port A & Port B.
77
+
To deploy the example on your brick, open a `terminal` and type:
78
+
79
+
```
80
+
./gradlew deployAndRun
81
+
```
82
+
83
+
### Add your new program
84
+
85
+
Once you feel comfortable with the Template project and the Gradle Tasks, you could feel the need to add your
86
+
own program. In this case, add in the project the new Java file like this one:
87
+
88
+
*HelloWorld.java*
89
+
90
+
[source,java]
91
+
----
92
+
include::HelloWorld.java[]
93
+
----
94
+
95
+
In order to run the new program, you will have to open the file MANIFEST.MF and update the field about `Main-Class`
96
+
indicating the new class, in this case `HelloWorld`
52
97
53
-
### Deploy your program
98
+
[source,java]
99
+
----
100
+
include::MANIFEST.MF[]
101
+
----
54
102
55
-
To deploy the example on your brick, open a `terminal` and type:
103
+
To deploy the new example on your brick, open a `terminal` and type:
0 commit comments