<
From version < 14.1 >
edited by aas2
on 2015/11/04 11:11
To version < 16.1 >
edited by aas2
on 2015/11/04 14:20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -70,9 +70,9 @@
70 70  
71 71  == Creating an Example Project ==
72 72  
73 -The following shows how to create simple project, that will turn on a light if a button is pressed.
73 +The following shows how to create a project, that will turn on a light if a button is pressed.
74 74  
75 -**Create a new project:**
75 +=== Create a new project: ===
76 76  
77 77  1. Choose //File > New > Project > SCCharts Project//
78 78  1. In the project creation wizard that opens, select //Mindstorms NXJ// as environment and hit //finish//
... ... @@ -79,11 +79,11 @@
79 79  1. The project wizard from the leJOS plugin opens. Set the project name to //Flashlight// and click //finish//.
80 80  1. The project is created and the model file is opened in an editor (This might take a few seconds).
81 81  
82 -**Edit the model:**
82 +=== Edit the model: ===
83 83  
84 84  Change the contents of the model file to the following code and save it.
85 85  
86 -{{code title="Floodlight.sct" theme="Eclipse"}}
86 +{{code title="Floodlight.sct" theme="Eclipse" language="sct"}}
87 87  scchart Flashlight {
88 88  
89 89   @Wrapper TouchSensor, S4
... ... @@ -105,7 +105,7 @@
105 105  The annotations on the input and output variable are used to define which wrapper code is used to set / read them. **@Wrapper TouchSensor, S4** will set the input variable to true iff the touch sensor on the port S4 is pressed. **@Wrapper Floodlight, S1** on the output variable will turn on the red led of the light sensor that is attatched to port S1 iff the variable is true.**
106 106  **
107 107  
108 -**Launch the project:**
108 +=== Launch the project: ===
109 109  
110 110  With the mouse over the SCT file in the project explorer, perform //Right Click > Run As > KiCo Compilation.//
111 111  
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -13763356
1 +13763403
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13763356/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13763403/LEGO Mindstorms with leJOS and SCCharts