ja die betonung liegt auf WIE.
soll ich für jede kombination eine procedur schreiben ?
und dann immer proceduren verknüpfen bis ich ne sequenz habe `?
edit:
um nochmal ein schritt zurück zu gehen, wie benutzte ich denn die timer fuktion dafür ?
eine einzelne led an und ausschalten ist kein problem:
so weit so gut, aber wie kriege ich denn damit verschiede sequenzen hin,Code:$regfile = "m32def.dat" $framesize = 32 $swstack = 32 $crystal = 8000000 $baud = 9600 config porta.0 = output 'spalte config porta.1 = output config porta.2 = output config porta.3 = output config porta.4 = output config porta.5 = output config portc.0 = output 'reihe config portc.1 = output config portc.2 = output config portc.3 = output config portc.4 = output config timer0 = timer , prescale = 1024 enable interrupts portc.0 = 1 do toggle porta.1 return
ich brauch mal nen kleinen denkanstoß
bis jetzt sieht das noch so aus :
wie kreige ich das denn in eine procedure/subroutine ?Code:do portA = &b00000001 portA = &b00000001 waitms 3 portA = &b00000010 portA = &b00000001 waitms 3 portA = &b00000100 portA = &b00000001 waitms 3 portA = &b00001000 portA = &b00000001 waitms 3 portA = &b00010000 portA = &b00000001 waitms 3 portA = &b00100000 portA = &b00000001 waitms 3 loop







Zitieren

Lesezeichen