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

Problem with weather-station-v2 #9

Open
LukasP46 opened this issue Mar 30, 2016 · 3 comments
Open

Problem with weather-station-v2 #9

LukasP46 opened this issue Mar 30, 2016 · 3 comments

Comments

@LukasP46
Copy link

'drawFrame1' was not declared in this scope

@bert2002
Copy link

bert2002 commented Feb 9, 2017

Hi, I am getting the same error. Any insights?

weather-station-v2:43: error: 'drawFrame1' was not declared in this scope
 void (*frameCallbacks[3])(int x, int y) = {drawFrame1, drawFrame2, drawFrame3};
                                            ^
weather-station-v2:43: error: 'drawFrame2' was not declared in this scope
 void (*frameCallbacks[3])(int x, int y) = {drawFrame1, drawFrame2, drawFrame3};
                                                        ^
weather-station-v2:43: error: 'drawFrame3' was not declared in this scope
 void (*frameCallbacks[3])(int x, int y) = {drawFrame1, drawFrame2, drawFrame3};
                                                                    ^
exit status 1
'drawFrame1' was not declared in this scope

Not sure if its important, but I dont have any display connected at the moment. @SPJS01 did you find a solution?

Many Thanks

bert

@josmanperez
Copy link

Hi  @SPJS01 @bert2002 you have to move the

 void drawFrame1(int x, int y) {
   display.setFontScale2x2(false);
   display.drawString(65 + x, 8 + y, "Now");
   display.drawXbm(x+7,y+7, 50, 50, getIconFromString(weather.getCurrentIcon()));
   display.setFontScale2x2(true);
   display.drawString(64+ x, 20 + y, String(weather.getCurrentTemp()) + "C"); 
 }

To above the reference name of drawFrame1

@mhmtmnctl
Copy link

'drawFrame1' was not declared in this scope i moved code that u gave but still have this error....

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

4 participants