divers modif pour teste : pas concluant

toujours des notes qui restent bloquées
This commit is contained in:
CHRISTOPHE 2020-02-14 20:23:46 +01:00
parent b98deffd29
commit eadf30e9f2

View File

@ -1,4 +1,4 @@
x
/* travail du 11/10/2019 modification pour 32 entrées
@ -209,18 +209,6 @@ void setup()
/* DDRA = B11111111 ; /* initialisation du port A en entré sur toutes les broches */ /* NE FONCTIONNE PAS ! */
/* DDRB = B11111111 ; /* initialisation du port B en entré sur toutes les broches */
/* DDRC = B11111111 ; /* initialisation du port C en entré sur toutes les broches */
/* DDRL = B11111111 ; /* initialisation du port L en entré sur toutes les broches */
Serial1.begin(31250); /* initialisation du port serie 2 broche 16 au debit MIDI */
@ -255,9 +243,8 @@ void loop()
RegistreA = PINA ; /* lecture du port A */
RegistreB = PINB ; /* lecture du port B */
RegistreC = PINC ; /* lecture du port C */
/* RegistreC = PINC ; /* lecture du port C */
RegistreL = PINL ; /* lecture du port L */
@ -270,7 +257,7 @@ void loop()
EPA6 = RegistreA & Masque64 ;
EPA7 = RegistreA & Masque128 ;
if ( ( EPA0 == 0 ) && ( DePA0 == 1 ) ) { noteOn(0x90, 0x24 , 0x70 ) ; } /* si etat A0=0 et Dernier etat A0=1 , jouer la note */
if ( ( EPA0 == 0 ) && ( DePA0 == 1 ) ) { noteOn(0x90, 0x24 , 0x90 ) ; } /* si etat A0=0 et Dernier etat A0=1 , jouer la note */
if ( ( EPA0 == 1 ) && ( DePA0 == 0 ) ) { noteOn(0x80, 0x24 , 0x00 ) ;}
if ( ( EPA1 == 0 ) && ( DePA1 == Masque2 ) ) {noteOn(0x90, 0x25 , 0x70 ) ;}
@ -329,9 +316,9 @@ void loop()
if ( ( EPB7 == Masque128 ) && ( DePB7 == 0 ) ) { noteOn(0x80, 0x33 , 0x00 ) ;} /* fin de gestion du port B */
/*
EPC0 = RegistreC & Masque1 ; /* gestion du port C */
EPC1 = RegistreC & Masque2 ;
/* EPC1 = RegistreC & Masque2 ;
EPC2 = RegistreC & Masque4 ;
EPC3 = RegistreC & Masque8 ;
EPC4 = RegistreC & Masque16 ;
@ -340,7 +327,7 @@ void loop()
EPC7 = RegistreC & Masque128 ;
if ( ( EPC0 == 0 ) && ( DePC0 == 1 ) ) { noteOn(0x90, 0x34 , 0x70 ) ; } /* gestion du port C */
if ( ( EPC0 == 1 ) && ( DePC0 == 0 ) ) { noteOn(0x80, 0x34 , 0x00 ) ;}
/* if ( ( EPC0 == 1 ) && ( DePC0 == 0 ) ) { noteOn(0x80, 0x34 , 0x00 ) ;}
if ( ( EPC1 == 0 ) && ( DePC1 == Masque2 ) ) { noteOn(0x90, 0x35 , 0x70 ) ;}
if ( ( EPC1 == Masque2 ) && ( DePC1 == 0 ) ) { noteOn(0x80, 0x35 , 0x00 ) ;}