O.K. das ist ein Lauflicht , deswegen wohl "Naubaddis NightRider 001"
.
Ein weiteres kleines Programm mit LEDs und einem Taster funktioniert auch schon, was mir fehlt ist etwas wie "start1: ... goto start1". Also ein Multitask damit der Taster nicht warten muss wenn die LEDs noch beschäftigt sind, im I-Net konnte ich nix finden oder habe nicht richtig gesucht.
Dann war da noch ein AKKU der für ein RC-Projekt geplant war, er wurde jetzt zum "Chip to Go" Projekt:
Das Programm:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
' Compiler: Bascom-Demo 2.0.7.5
$regfile = "attiny85.dat"
$crystal = 1000000
$hwstack = 16
$swstack = 16
$framesize = 32
config portb.0 = output
config portb.1 = output
config portb.2 = output
config pinb.3 = input
config pinb.4 = input
Dim ein as Bit
ein = 0
Do
if pinb.3 = 1 then
if ein = 0 then
ein = 1
do
if pinb.3 = 0 then exit do
loop
else
ein = 0
portb.0 = 0
portb.1 = 0
portb.2 = 0
do
if pinb.3 = 0 then exit do
loop
endif
waitms 500
endif
if ein = 1 then
Toggle PortB.0
Waitms 100
Toggle PortB.1
Waitms 200
Toggle PortB.2
Waitms 300
endif
Loop
End
Grüßle, Naubaddy