bonjour
je suis débutant et je cherche a éclairer
25 leds a l aide de lignes et de colonnes (row et col )
mes symboles fonctionnent mais pour facilité
l’écriture du code j aimerais attribuer une lettre
a chaque leds sous forme de symboles avec une ligne
et une colonne mais la ça coince
j ai bien peur d être complétement a coté un
peu d aide serait la bienvenue je vous remercie
d avance j ajoute mon bout de code qui va surement
horrifier les spécialistes
merci bonne journée
Georges
[;picaxe 20M2
symbol row1 = B.1 ;ligne 1
symbol row2 = B.2 ;ligne 2
symbol row3 = B.3 ;ligne 3
symbol row4 = B.4 ;ligne 4
symbol row5 = B.5 ;ligne 5
symbol col1 = C.1 ;colonne 1
symbol col2 = C.2 ;colonne 2
symbol col3 = C.3 ;colonne 3
symbol col4 = C.4 ;colonne 4
symbol col5 = C.5 ;colonne 5
symbol aa = row1 and col1 ;led a
symbol bb = row2 and col2 ;led c
symbol cc = row3 and col3 ;led d
symbol te = 2000 ;temporisation
high aa,bb,cc ;leds a b c on
pause te ;temporisation
low aa,bb,cc ;leds a b c off
high cc,bb ;leds c b on
pause te ;temporisation
low cc,bb ;leds c b off ]
je suis débutant et je cherche a éclairer
25 leds a l aide de lignes et de colonnes (row et col )
mes symboles fonctionnent mais pour facilité
l’écriture du code j aimerais attribuer une lettre
a chaque leds sous forme de symboles avec une ligne
et une colonne mais la ça coince
j ai bien peur d être complétement a coté un
peu d aide serait la bienvenue je vous remercie
d avance j ajoute mon bout de code qui va surement
horrifier les spécialistes
merci bonne journée
Georges
[;picaxe 20M2
symbol row1 = B.1 ;ligne 1
symbol row2 = B.2 ;ligne 2
symbol row3 = B.3 ;ligne 3
symbol row4 = B.4 ;ligne 4
symbol row5 = B.5 ;ligne 5
symbol col1 = C.1 ;colonne 1
symbol col2 = C.2 ;colonne 2
symbol col3 = C.3 ;colonne 3
symbol col4 = C.4 ;colonne 4
symbol col5 = C.5 ;colonne 5
symbol aa = row1 and col1 ;led a
symbol bb = row2 and col2 ;led c
symbol cc = row3 and col3 ;led d
symbol te = 2000 ;temporisation
high aa,bb,cc ;leds a b c on
pause te ;temporisation
low aa,bb,cc ;leds a b c off
high cc,bb ;leds c b on
pause te ;temporisation
low cc,bb ;leds c b off ]