Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: lang kurz Auswertung - Micro - CCBASIC Kategorie: Programmierung Basic (von Christoph berninger - 25.07.2005 22:48)
 Als Antwort auf Doppelklick Auswertung - Micro - CCBASIC von Roland - 25.07.2005 11:31
Christoph berninger nutzt:  CC1-Unit V1.1, Micro

Dieses Programm hat p3 als eingang drückst du kurz dann wird p5 gewechselt drückst du lang dann
wechselt nur p4
auf mikro und pe gesestet.

define p1 port [1]
define p2 port [2]
define p3 port [3]
define p4 port [4]
define p5 port [5]
define p6 port [6]
define b1 byte [1]

baud 9600

#df
if not p3 then goto p2
print second
goto df

#p2
second = 0
wait p3 or second > 0
if second > 0 then goto df2
p5 = not p5
goto df

#df2
p4 = not p4
wait p3
goto df

gruß bourunger

 Antwort schreiben

Bisherige Antworten: