src/Pocket_Organ/Support.cpp
void SR_map(unsigned char green, unsigned char red){
  for (char i=7; i>=0; i--){
    digitalWrite(SR_DATA, (red>>i)&1);
    SR_clock();
    digitalWrite(SR_DATA, (green>>i)&1);
    SR_clock();
  }
  SR_clock();
}
//Light all keys according to the bit maps passed in arguments
//1=Do, 2=Re, 4=Mi...
Light all keys according to the bit maps passed in arguments
1=Do, 2=Re, 4=Mi
Light all keys according to the bit maps passed in arguments 1 = Do 2 = Re 4 = Mi
void SR_map(unsigned char green, unsigned char red){
  for (char i=7; i>=0; i--){
    digitalWrite(SR_DATA, (red>>i)&1);
    SR_clock();
    digitalWrite(SR_DATA, (green>>i)&1);
    SR_clock();
  }
  SR_clock();
}
void SR_map ( unsigned char green , unsigned char red ) { for ( char i = 7 ; i >= 0 ; i -- ) { digitalWrite ( SR_DATA , ( red >> i ) & 1 ) ; SR_clock ( ) ; digitalWrite ( SR_DATA , ( green >> i ) & 1 ) ; SR_clock ( ) ; } SR_clock ( ) ; }
Light all keys according to the bit maps passed in arguments
1=Do, 2=Re, 4=Mi...
Light all keys according to the bit maps passed in arguments 1 = Do 2 = Re 4 = Mi ...