Sie sind auf Seite 1von 1

AllDigital TRISB = 0 Symbol data = PORTB.0 Symbol clock = PORTB.

1 Dim aux As Word Dim col As Byte inicio: aux = %0001110001110001 Gosub escribo WaitMs 10 aux = %0011001100110011 Gosub escribo WaitMs 10 Goto inicio End escribo: For col = 1 To 16 If aux.15 = 0 Then data = 1 WaitMs 600 clock = 0 WaitMs 600 clock = 1 WaitMs 600 Else data = 0 WaitMs 600 clock = 0 WaitMs 600 clock = 1 WaitMs 600 Endif aux = ShiftLeft(aux, 1) Next col Return

Das könnte Ihnen auch gefallen