So, is this impossible to do? Or just few people have been using these boards and hence there are no example code up anywhere?
I have tried the piccolo example on adafruit, but just got this
Code: Select all
Piccolo:231: error: expected constructor, destructor, or type conversion before '(' token
ISR(ADC_vect) { // Audio-sampling interrupt
^
/Users//Documents/Arduino/Piccolo/Piccolo.pde: In function 'void setup()':
Piccolo:131: error: 'ADMUX' was not declared in this scope
ADMUX = ADC_CHANNEL; // Channel sel, right-adj, use AREF pin
^
Piccolo:132: error: 'ADCSRA' was not declared in this scope
ADCSRA = _BV(ADEN) | // ADC enable
^
Piccolo:132: error: 'ADEN' was not declared in this scope
ADCSRA = _BV(ADEN) | // ADC enable
^
Piccolo:132: error: '_BV' was not declared in this scope
ADCSRA = _BV(ADEN) | // ADC enable
^
Piccolo:133: error: 'ADSC' was not declared in this scope
_BV(ADSC) | // ADC start
^
Piccolo:134: error: 'ADATE' was not declared in this scope
_BV(ADATE) | // Auto trigger
^
Piccolo:135: error: 'ADIE' was not declared in this scope
_BV(ADIE) | // Interrupt enable
^
Piccolo:136: error: 'ADPS2' was not declared in this scope
_BV(ADPS2) | _BV(ADPS1) | _BV(ADPS0); // 128:1 / 13 = 9615 Hz
^
Piccolo:136: error: 'ADPS1' was not declared in this scope
_BV(ADPS2) | _BV(ADPS1) | _BV(ADPS0); // 128:1 / 13 = 9615 Hz
^
Piccolo:136: error: 'ADPS0' was not declared in this scope
_BV(ADPS2) | _BV(ADPS1) | _BV(ADPS0); // 128:1 / 13 = 9615 Hz
^
Piccolo:137: error: 'ADCSRB' was not declared in this scope
ADCSRB = 0; // Free run mode, no high MUX bit
^
Piccolo:138: error: 'DIDR0' was not declared in this scope
DIDR0 = 1 << ADC_CHANNEL; // Turn off digital input for ADC pin
^
Piccolo:139: error: 'TIMSK0' was not declared in this scope
TIMSK0 = 0; // Timer0 off
^
Piccolo:141: error: 'sei' was not declared in this scope
sei(); // Enable interrupts
^
/Users//Documents/Arduino/Piccolo/Piccolo.pde: In function 'void loop()':
Piccolo:149: error: 'ADCSRA' was not declared in this scope
while(ADCSRA & _BV(ADIE)); // Wait for audio sampling to finish
^
Piccolo:149: error: 'ADIE' was not declared in this scope
while(ADCSRA & _BV(ADIE)); // Wait for audio sampling to finish
^
Piccolo:149: error: '_BV' was not declared in this scope
while(ADCSRA & _BV(ADIE)); // Wait for audio sampling to finish
^
Piccolo:153: error: 'ADCSRA' was not declared in this scope
ADCSRA |= _BV(ADIE); // Resume sampling interrupt
^
Piccolo:153: error: 'ADIE' was not declared in this scope
ADCSRA |= _BV(ADIE); // Resume sampling interrupt
^
Piccolo:153: error: '_BV' was not declared in this scope
ADCSRA |= _BV(ADIE); // Resume sampling interrupt
^
/Users//Documents/Arduino/Piccolo/Piccolo.pde: At global scope:
Piccolo:231: error: expected constructor, destructor, or type conversion before '(' token
ISR(ADC_vect) { // Audio-sampling interrupt
^
exit status 1
expected constructor, destructor, or type conversion before '(' token