Hey alle zusammen wollt nur mal Bescheid geben. Ich denk ich habs jetzt hin bekommen, zumindest tauchten schon mal auf dem Display viele Pixel auf . Ich hab mal testweise einfach alle Pixel gesetzt und wieder ausgemacht. Den Befehl dazu hab ich vom Datenblatt. Alle Pixel auszustellen geht auch einwandfrei nur bei alle Pixel setzten werden nicht alle angezeigt sondern nur immer mal wieder welche es sieht so aus wie bei einem fernsehe wenn er kein empfang hat. Hat jemand von euch ne Ahnung woran des liegen könnte? Weil der befehl is aus der Befehlstabelle vom Datenblatt oder is des en Anzeichen dafür das des Display nicht richtig initialisiert wurde.
MFG Micha



Code:
$regfile = "m32def.dat"
$crystal = 16000000
$baud = 9600



'Config Spi = Hard , Data Order = Msb , Master = Yes , Polarity = High , Phase = 0 , Clockrate = 16 , Noss = 0
Config Spi = Soft , Din = Pinc.7 , Dout = Pinc.6 , Ss = Pinc.5 , Clock = Pinc.4

Config Portc.3 = Output
Lcdreset Alias Portc.3

Config Portc.2 = Output
A0 Alias Portc.2



Dim Command1 As Byte
Dim Command2 As Byte
Dim Command3 As Byte
Dim Command4 As Byte
Dim Command5 As Byte
Dim Command6 As Byte
Dim Command7 As Byte
Dim Command8 As Byte
Dim Command9 As Byte
Dim Command10 As Byte
Dim Command11 As Byte
Dim Command12 As Byte
Dim Command13 As Byte
Dim Command14 As Byte




Dim Lcdon As Byte
Dim Lcdoff As Byte
Dim Setall As Byte
Dim Alloff As Byte


Command1 = &H40
Command2 = &HA1
Command3 = &HCO
Command4 = &HA6
Command5 = &HA2
Command6 = &H2F
Command7 = &HF8
Command8 = &H00
Command9 = &H23
Command10 = &H81
Command11 = &H1F
Command12 = &HAC
Command13 = &H00
Command14 = &HAF

Lcdon = &HAF
Lcdoff = &HAE

Setall = &HA4
Alloff = &HA5


Spiinit

Lcdreset = 1
Waitms 100
Lcdreset = 0
Waitms 100
Lcdreset = 1

A0 = 0


Spiinit

Spiout Command1 , 1
Spiout Command2 , 1
Spiout Command3 , 1
Spiout Command4 , 1
Spiout Command5 , 1
Spiout Command6 , 1
Spiout Command7 , 1
Spiout Command8 , 1
Spiout Command9 , 1
Spiout Command10 , 1
Spiout Command11 , 1
Spiout Command12 , 1
Spiout Command13 , 1
Spiout Command14 , 1


Do


Wait 1

Spiout Alloff , 1


Wait 2

Spiout Setall , 1

Loop



End