Shield Pinout
What pins does the codec shield use on the arduino and what are their functions?
thanks
thanks
Tools and Techniques for Musicians, Composers, and Tinkerers
5 posts · 9456 views
byte switch_position = 0;
ISR(TIMER1_COMPA_vect, ISR_NAKED) { // dont store any registers
// leave the transfer function at the top as usual
AudioCodec_data(&left_in, &right_in, left_out, right_out);
// go to the right code depending upon switch position
if (switch_position == 0) {
// one set of code here
}
else if (switch_position == 1) {
// second set of code here
}
else {
// last set of code here
}
// check for new switch position
// this code assumes a rotary encoder on D2,D3,D4
switch_position = (PIND >> 2) & 0x07;
// dont forget to return from interrupt
reti();
}1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible both with the board that use the AVR, which operate with 5V and with the Arduino Due that operate with 3.3V