title: C compile errors: stray '\200' in program and expected ')' before numeric constant
body: <p>I copied this program and am having trouble with the void downFrequency function (I think).</p>
  <p>This is for <a href="http://arduino.cc/en/Main/ArduinoBoardUno" rel="nofollow noreferrer">Arduino Uno</a>. Here are the compiler errors:</p>
  <p>Compiling 'MY_dds' for 'Arduino Uno'</p>
  <pre class="lang-none prettyprint-override"><code>MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : stray '\342' in program
  MY_dds.ino : stray '\200' in program
  MY_dds.ino : stray '\223' in program
  MY_dds.ino : : In function 'void downFrequency()':
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  MY_dds.ino : expected `)' before numeric constant
  Error compiling
  </code></pre>
  <p>Here is the program:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;dds.h&gt;
  #include &lt;LiquidCrystal.h&gt;
  
  #define RESET 13
  #define data_pin 12
  #define load_pin A5
  #define clock_pin A4
  #define clock_hz 120000000LL
  #define calibrationValue -0.0400000 // This is a value we change to calibrate
                                      // our particular chip more accurately
  #define buttonPin A0
  
  // chip, data_pin, load_pin, clock_pin, clock_hz
  dds ddschip(DDS9850, data_pin, load_pin,  // Set my dds up with 120 MHz
              clock_pin, clock_hz);         // onboard crystal
  
  LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
  
  // Some variables to use in our program
  long toFrequency = 14070000;
  long currentFrequency;
  long maxFrequency = 40000000;
  long minFrequency = 0;
  int incrementNumber = 6;
  int maxprogramnumber = 6; // Don't forget to increase the menu numbers here!!
  int programnumber = 1;
  
  void setup()
  {
    Serial.begin(9600);
    Serial.println(&quot;Beginning Setup&quot;);
  
    // Set up the LCD’s number of columns and rows:
    lcd.begin(16, 2);
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print(&quot;T.Robb V0.1b &quot;); // Print a little message
    lcd.setCursor(0, 1);
    lcd.print(&quot; DDS Sine wave &quot;);
    delay(2000);
  
    // Set up pins
    pinMode(RESET, OUTPUT);
    pinMode(data_pin, OUTPUT);
    pinMode(load_pin, OUTPUT);
    pinMode(clock_pin, OUTPUT);
    pinMode(buttonPin, INPUT);
    digitalWrite(buttonPin, HIGH);
  
    ddschip.calibrate(calibrationValue); // This is a value we change to calibrate
                                         // our particular chip more accurately
    ddschip.setfrequency(toFrequency);
    lcd.clear();
  }
  
  void loop()
  {
    if(toFrequency &gt;= maxFrequency)
    {
      (toFrequency = maxFrequency);
    }
  
    if(toFrequency &lt;= minFrequency)
    {
      (toFrequency = minFrequency);
    }
  
    ddschip.setfrequency(toFrequency);
    currentFrequency = toFrequency;
  
    switch(incrementNumber)
    {
      case 0:
        Serial.println(&quot;increment amount is 1 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 1 Hz&quot;);
        break;
  
      case 1:
        Serial.println(&quot;increment amount is 10 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 10 Hz &quot;);
        break;
  
      case 2:
        Serial.println(&quot;increment amount is 100 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 100 Hz &quot;);
        break;
  
      case 3:
        Serial.println(&quot;increment amount is 1 000 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 1 kHz&quot;);
        break;
  
      case 4:
        Serial.println(&quot;increment amount is 10 000 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 10 kHz&quot;);
        break;
  
      case 5:
        Serial.println(&quot;increment amount is 100 000 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 100 kHz&quot;);
        break;
  
      case 6:
        Serial.println(&quot;increment amount is 1 000 000hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 1 MHz&quot;);
        break;
  
      default:
        Serial.println(&quot;increment amount is 100 Hz&quot;);
        lcd.setCursor(0, 0);
        lcd.print(&quot;Change By 100 Hz &quot;);
        break;
    }
  
    lcd.setCursor(0, 1);
    lcd.print(&quot;Freq is &quot;); // Print to LCD
    lcd.setCursor(8, 1);
    lcd.print(currentFrequency);
  
    Serial.println(incrementNumber); // Temporary for debugging delete me
  
    Serial.print(&quot;Current frequency is set to: &quot;);
    Serial.println(currentFrequency);
  
    while((analogRead(buttonPin))&gt;=1000) // Do nothing while no buttons pressed to chill out
    {
    }
  
    delay(5);
    if (analogRead(buttonPin)&gt;=100 &amp;&amp; analogRead(buttonPin) &lt;= 200) // We have pushed up
    {
      upFrequency();
      delay(300);
    }
  
    if(analogRead(buttonPin)&gt;=200 &amp;&amp; analogRead(buttonPin) &lt;= 400) // We have pushed down
    {
      downFrequency();
      delay(300);
    }
  
    if ((analogRead(buttonPin)) &lt;= 50) // We have pushed right
    {
      incrementNumber++;
      delay(300);
    }
  
    if(analogRead(buttonPin) &gt;= 400 &amp;&amp; analogRead(buttonPin)&lt;=600) // We have pushed left
    {
      incrementNumber–;
      delay(300);
    }
  
    if(incrementNumber &gt; 6) // This is where the menu goes around and around
    {
      incrementNumber = 0;
    }
    if(incrementNumber &lt; 0)
    {
      incrementNumber = 6;
    }
  
    delay(100);
    lcd.clear();
  }
  
  void upFrequency()
  {
    Serial.println(&quot;Going UP Frequency&quot;);
    switch(incrementNumber)
    {
      case 0:
        toFrequency = (toFrequency + 1);
        break;
  
      case 1:
        toFrequency = (toFrequency + 10);
        break;
  
      case 2:
        toFrequency = (toFrequency + 100);
        break;
  
      case 3:
        toFrequency = (toFrequency + 1000);
        break;
  
      case 4:
        toFrequency = (toFrequency + 10000);
        break;
  
      case 5:
        toFrequency = (toFrequency + 100000);
        break;
  
      case 6:
        toFrequency = (toFrequency + 1000000);
        break;
  
      default:
        toFrequency = (toFrequency + 10);
        break;
    }
  
  }
  
  
  void downFrequency()
  {
    Serial.println(&quot;Going DOWN Frequency&quot;);
    switch(incrementNumber)
    {
      case 0:
        toFrequency = (toFrequency – 1);
        break;
  
      case 1:
        toFrequency = (toFrequency – 10);
        break;
  
      case 2:
        toFrequency = (toFrequency – 100);
        break;
  
      case 3:
        toFrequency = (toFrequency – 1000);
        break;
  
      case 4:
        toFrequency = (toFrequency – 10000);
        break;
  
      case 5:
        toFrequency = (toFrequency – 100000);
        break;
  
      case 6:
       toFrequency = (toFrequency – 1000000);
       break;
  
      default:
        toFrequency = (toFrequency – 10);
        break;
    }
  
  }
  </code></pre>