Rene Beckmann 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
..
.settings 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
Release 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
model 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
sc 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
scutil 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
.cproject 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
.ino.cpp 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
.project 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
README.TXT 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
TrafficLightCtrl.c 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
TrafficLightCtrl.h 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
TrafficLightCtrlRequired.h 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
pushbutton.c 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
pushbutton.h 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás
traffic_light_arduino.ino 9073487e10 Added an example that shows how the traffic_light example can be ported to the Arduino platform 9 anos atrás

README.TXT

This example is based on the normal traffic_light example, which is made for Java.
It shows how the exact same statechart can be used for a Java application and an arduino sketch written in C.
PLEASE NOTE: You need the Eclipse Arduino plugin.

To install the tool in Yakindu Statechart Tools, go to Help->Install New Software, copy
http://www.baeyens.it/eclipse/V3/
and give it a meaningful name. After that, you can select the plugin and install it. After one restart of YSCT, the plugin is ready to use.

Also, of course, you need an Arduino. The pins where you need to connect the LEDs and buttons can be seen or changed in the software.

Parts list:
- Arduino 1x
- red LED 2x
- green LED 2x
- yellow LED 1x
- white LED 1x
- resistors for the LEDs, 200 to 300 Ohm
- Button 2x
- pull-up resistors for the buttons 2x
- cables and a breadboard

Also, you need to set the correct port for the Arduino in Project->Properties.