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

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.