Hab hier mal so auf die Schnelle bissel das Display mit Servo eingesetzt .....
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
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
$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 40
$swstack = 40
$framesize = 40
Config Lcdpin = Pin , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7 , E = Portd.2 , Rs = Portd.3
Config Lcd = 16 * 2
Cursor Off
Cls
Config Servos = 1 , Servo1 = Portb.0 , Reload = 10
config portb.0 = output
config portc = output
Enable Interrupts
locate 1,1
lcd "L=25 M=90 R=150 "
do
Servo(1) =150
locate 2,1
lcd "Pos:150 (Rechts)"
portc=1
waitms 2000
Servo(1) =90
locate 2,1
lcd "Pos:90 (Mitte)"
portc=2
waitms 2000
Servo(1) =30
locate 2,1
lcd "Pos:30 (Links)"
portc=4
waitms 2000
loop
End