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

Parameter ILI9340_SAVE_SPCR doesn't work #6

Open
Pin666 opened this issue Jul 26, 2016 · 1 comment
Open

Parameter ILI9340_SAVE_SPCR doesn't work #6

Pin666 opened this issue Jul 26, 2016 · 1 comment

Comments

@Pin666
Copy link

Pin666 commented Jul 26, 2016

When you change parameter ILI9340_SAVE_SPCR from 0 to 1 in test project PDQ_graphicstest/PDQ_ILI9340_config.h like the comment indicates
// <= 0/1 with 1 to save/restore AVR SPI control register (to "play nice" when other SPI use)

the project will no longer compile.

Error:
PDQ_ILI9340.h: In static member function 'static void PDQ_ILI9340::spi_begin()':
PDQ_ILI9340.h:200:23: error: 'swap' was not declared in this scope
swap(save_SPCR, SPCR); // swap initial/current SPCR settings

@Pin666
Copy link
Author

Pin666 commented Jul 26, 2016

I guess I found the mistake. The function swap doesn't exist in file PDQ_GFX.h.
Instead the name of the function is swapValue. So replace swap by swapValue in file PDQ_ILI9340.h

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

1 participant