Mußte ich doch tatsächlich wieder in meine Katakomben und in alten Sachen wühlen gehen .......
Hier jetzt meine Version :
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
50
51
52
53
54
55
56
57
58
59
60
61
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
50
51
52
53
54
55
56
57
58
59
60
61
$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 40
$swstack = 40
$framesize = 40
Config Servos = 1 , Servo1 = Portb.0 , Reload = 10
config portb.0 = output
config portc.1 = output
config portc.2 = output
config portc.3 = output
config portc.4 = output
config portc.5 = output
Led1 alias portc.1
Led2 alias Portc.2
Led3 alias Portc.3
Led4 alias Portc.4
Led5 alias Portc.5
Enable Interrupts
Servo(1) = 150
waitms 1000
main:
Led5 = 0
Led1 = 1
Servo(1) = 150
waitms 1000
Led1 = 0
Led2 = 1
Servo(1) = 130
waitms 1000
Led2 = 0
Led3 = 1
Servo(1) = 110
waitms 1000
Led3 = 0
Led4 = 1
Servo(1) = 90
waitms 1000
Led4 = 0
Led5 = 1
Servo(1) = 70
waitms 1000
goto main
End