Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LED2.h
- Revision:
- 8:cfcf73c16fab
- Parent:
- 6:edb27e228558
- Child:
- 11:0b85a680ad28
diff -r 315630fad89f -r cfcf73c16fab LED2.h
--- a/LED2.h Mon Apr 15 15:25:12 2019 +0000
+++ b/LED2.h Wed Aug 25 09:54:24 2021 +0000
@@ -1,3 +1,5 @@
+// Rassurez vous, VOUS n'avez pas a changer ces lignes de commandes
+
// variables propres Affichage vers led en 16 bandes
int AL ; int AP ; int AT ; // Affichae AL ligne AP pix AT temps
int g1 ; int g2 ; int g3 ; int g4 ; // durée des 4 temps d'allumage
@@ -21,64 +23,13 @@
acy4 = acy3 ; acy3 = acy2 ; acy2 = acy1 ;
acx1 = xin * 150-75;
acy1 = yin * 150 - 75 ; // + calculs
+ accx = ( acx1 + acx2 + acx3 + acx4) ;
+ accy = ( acy1 + acy2 + acy3 + acy4) ;
ccx = ( acx1 + acx2 + acx3 + acx4)/4 ;
ccy = ( acy1 + acy2 + acy3 + acy4)/4 ;
}
-void coul( int cc )
- {
- switch (cc)
- {
- case 0 :
- ZR = 7 ; ZV = 0 ; ZB = 0 ;
- break;
- case 1 :
- ZR = 0 ; ZV = 7 ; ZB = 0 ;
- break;
- case 2 :
- ZR = 0 ; ZV = 0 ; ZB = 7 ;
- break;
- case 3 :
- ZR = 7 ; ZV = 2 ; ZB = 0 ;
- break;
- case 4 :
- ZR = 7 ; ZV = 0 ; ZB = 2 ;
- break;
- case 6 :
- ZR = 5 ; ZV = 15 ; ZB = 0 ;
- break;
- case 7 :
- ZR = 0 ; ZV = 7 ; ZB = 2 ;
- break;
- case 8 :
- ZR = 0 ; ZV = 2 ; ZB = 7 ;
- break;
- case 9 :
- ZR = 15 ; ZV = 0 ; ZB = 15 ;
- break;
- case 10 :
- ZR = 0 ; ZV = 7 ; ZB = 7 ;
- break;
- case 11 :
- ZR = 7 ; ZV = 0 ; ZB = 7 ;
- break;
- case 12 :
- ZR = 7 ; ZV = 7 ; ZB = 0 ;
- break;
- case 13 :
- ZR = 7 ; ZV = 7 ; ZB = 7 ;
- break;
- case 14 :
- ZR = 2 ; ZV = 0 ; ZB = 0 ;
- break;
- case 15 :
- ZR = 0 ; ZV = 2 ; ZB = 0 ;
- break;
- default:
- ZR = 0 ; ZV = 0 ; ZB = 0 ;
- break;
- }
- }
+
void Tr2 () // T reset
{// efface tableau T led faire en x16
for ( ZL = 0 ; ZL < 16 ; ZL++ )