Welcome, Guest
Username: Password: Remember me

TOPIC: Compiler Error for Volume/Booster Pedal

Compiler Error for Volume/Booster Pedal 1 year 3 months ago #2157

  • GTS
  • GTS's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
Hey

I want to build the Pedal Shield Due but i get following error during compiling.

base operand of '->' is not a pointer for line 31

Any ideas?

I use the example Code from the website.
// Licensed under a Creative Commons Attribution 3.0 Unported License.
// Based on rcarduino.blogspot.com previous work.
// www.electrosmash.com/pedalshield
 
int in_ADC0, in_ADC1;  //variables for 2 ADCs values (ADC0, ADC1)
int POT0, POT1, POT2, out_DAC0, out_DAC1; //variables for 3 pots (ADC8, ADC9, ADC10)
int LED = 3;
int FOOTSWITCH = 7; 
int TOGGLE = 2; 
 
void setup()
{
  //ADC Configuration
  ADC->ADC_MR |= 0x80;   // DAC in free running mode.
  ADC->ADC_CR=2;         // Starts ADC conversion.
  ADC->ADC_CHER=0x1CC0;  // Enable ADC channels 0 and 1.  
 
  //DAC Configuration
  analogWrite(DAC0,0);  // Enables DAC0
  analogWrite(DAC1,0);  // Enables DAC0
}
 
void loop()
{
  //Read the ADCs
  while((ADC->ADC_ISR & 0x1CC0)!=0x1CC0);// wait for ADC 0, 1, 8, 9, 10 conversion complete.
  in_ADC0=ADC->ADC_CDR[7];               // read data from ADC0
  in_ADC1=ADC->ADC_CDR[6];               // read data from ADC1  
  POT0=ADC->ADC_CDR[10];                 // read data from ADC8        
  POT1=ADC->ADC_CDR[11];                 // read data from ADC9   
  POT2=ADC->ADC_CDR[12];                 // read data from ADC10 
 
  //Add volume feature with POT2
  out_DAC0=map(in_ADC0,0,4095,1,POT2);
  out_DAC1=map(in_ADC1,0,4095,1,POT2);
 
  //Write the DACs
  dacc_set_channel_selection(DACC_INTERFACE, 0);       //select DAC channel 0
  dacc_write_conversion_data(DACC_INTERFACE, out_DAC0);//write on DAC
  dacc_set_channel_selection(DACC_INTERFACE, 1);       //select DAC channel 1
  dacc_write_conversion_data(DACC_INTERFACE, out_DAC1);//write on DAC
}
The administrator has disabled public write access.

Compiler Error for Volume/Booster Pedal 1 year 3 months ago #2158

  • GTS
  • GTS's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
USER_NOT_SMART_ENOUGH!!!

Used the wrong board.
The administrator has disabled public write access.

Compiler Error for Volume/Booster Pedal 1 year 2 months ago #2165

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 702
  • Thank you received: 152
  • Karma: 44
USER_NOT_SMART_ENOUGH!!!
:lol: :lol: :lol:
Yes, that happens to me all the time, you have probably selected the wrong board.

Go to the menu Tools/Board and select your board :)
The administrator has disabled public write access.

Compiler Error for Volume/Booster Pedal 1 year 2 months ago #2167

  • GTS
  • GTS's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
Did someone adapt the code to another Board Like mkrzero?
The administrator has disabled public write access.

Compiler Error for Volume/Booster Pedal 1 year 2 months ago #2168

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 702
  • Thank you received: 152
  • Karma: 44
Hi, as far as I know the pedalshield project is available for Arduino UNO, DUE, MEGA and Raspberry Pi Zero. The mkrzero has a fantastic form factor but so far I had not explored it ;)
The administrator has disabled public write access.

Compiler Error for Volume/Booster Pedal 1 year 2 months ago #2169

  • GTS
  • GTS's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Karma: 0
There is a beautifull Microphone shield (i2s) from Infineon. Together with a magnetic pickup and the mkrzero you could build a nice Preamp for acustic Instruments.
The administrator has disabled public write access.
Time to create page: 0.199 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio