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: Doppelklick und klick Micro - CCBASIC Kategorie: Programmierung Basic (von Christoph berninger - 25.07.2005 22:58)
 Als Antwort auf Doppelklick Auswertung - Micro - CCBASIC von Roland - 25.07.2005 11:31
Christoph berninger nutzt:  CC1-Unit V1.1, Micro

dieses programm verwendet p3 als eingang klickst du einmal dann wechselt p5 oder dopplklick dann wechselt p4


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
wait not p3 or  second > 0
if second < 1 then goto df2
p5 = not p5
goto df

#df2
p4 = not p4
wait p3
goto df

gruß bourunger

 Antwort schreiben

Bisherige Antworten: