Skip to content

Errors when attempting to compile #2

Description

I'm getting the following errors when attempting to compile for Arduino Uno, any ideas here?

Arduino: 1.8.1 (Mac OS X), Board: "Arduino/Genuino Uno"

In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
                 from sketch/brain_machine.ino.cpp:1:
/Users/frank/Documents/Arduino/brain_machine/brain_machine.ino: In function 'void do_brainwave_element(int)':
brain_machine:285: error: 'Index' was not declared in this scope
   char brainChr = pgm_read_byte(&brainwaveTab[Index].bwType);     
                                               ^
brain_machine:294: error: 'Index' was not declared in this scope
       blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 347, 347 );
                                                ^
brain_machine:303: error: 'Index' was not declared in this scope
       alt_blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 347, 347 );
                                                    ^
brain_machine:312: error: 'Index' was not declared in this scope
       blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 451, 450 );
                                                ^
brain_machine:321: error: 'Index' was not declared in this scope
       alt_blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 451, 450 );
                                                    ^
brain_machine:332: error: 'Index' was not declared in this scope
       blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 835, 835 );
                                                ^
brain_machine:343: error: 'Index' was not declared in this scope
       alt_blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 835, 835 );
                                                    ^
brain_machine:352: error: 'Index' was not declared in this scope
       blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 2253, 2253 );
                                                ^
brain_machine:361: error: 'Index' was not declared in this scope
       alt_blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 2253, 2253 );
                                                    ^
brain_machine:370: error: 'Index' was not declared in this scope
       blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 124, 124 );
                                                ^
brain_machine:379: error: 'Index' was not declared in this scope
       alt_blink_LEDs( pgm_read_dword(&brainwaveTab[Index].bwDuration), 124, 124 );
                                                    ^
exit status 1
'Index' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions