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

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.