Skip to content

Commit 5420e0d

Browse files
committed
add model
1 parent bd8b264 commit 5420e0d

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/
2121
sudo mv node-v6.10.2-linux-armv6l nodejs
2222
sudo ln -s /opt/nodejs/bin/node /usr/bin/node
2323
sudo ln -s /opt/nodejs/bin/npm /usr/bin/npm
24+
25+
## Setup a service
26+
27+
tbd
28+
29+
# Start and stop
30+
31+
service JenkinsLamp start
32+
service JenkinsLamp status
33+
service JenkinsLamp stop
34+

info.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Infos
2+
3+
## Mögliche Zustände
4+
5+
* red
6+
* yellow
7+
* blue
8+
* aborted
9+
* red_anime
10+
* yellow_anime
11+
* blue_anime

model.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/********************************************************************
2+
* The model.
3+
*******************************************************************/
4+
5+
var LampState = {
6+
ON: 1,
7+
OFF: 2,
8+
BLINK: 3
9+
};
10+
11+
function LampData() {
12+
var red, orange, green;
13+
this.red = LampState.OFF;
14+
this.orange = LampState.OFF;
15+
this.green = LampState.OFF;
16+
}
17+
18+
// export the class
19+
module.exports.LampData = LampData;

0 commit comments

Comments
 (0)