Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error on defining IO_E2 #5

Open
jsmith2021Brandeis opened this issue Jan 20, 2019 · 1 comment
Open

Compilation Error on defining IO_E2 #5

jsmith2021Brandeis opened this issue Jan 20, 2019 · 1 comment

Comments

@jsmith2021Brandeis
Copy link

This library doesn't compile in my Sloeber Application because LEFT_B isn't defined as a constant
image

@kevin-pololu
Copy link
Member

kevin-pololu commented Jan 23, 2019

Hi,

The pin constant IO_E2 is defined in the FastGPIO library, and in order for that to happen correctly, the program needs to be compiled with the correct processor specified (here is the line in FastGPIO.h that checks for it). Normally, the processor is specified by passing the -mmcu option to avr-g++ (e.g. -mmcu=atmega32u4).

We haven't used Sloeber and are not familiar with it, but could you check that you don't see any previous errors that indicate that FastGPIO.h is not being included properly, and that the ATmega32U4 microcontroller is correctly selected for your project? Could you copy the full avr-g++ command line from the console output (2 lines above the error you highlighted) so we can see if it includes -mmcu=atmega32u4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants