Jump to content

Arduino Compile errors


Uup115

Recommended Posts

Hello,

Version 2.9  is generating compilation errors for "ugfx_test.ino".  Atfer following "ugfx_2.9\boards\base\ArduinoTinyScreen\readme.txt" instructions (see attached file), I'm getting the following errors. I noticed the instructions are missing step 2.

 

Arduino: 1.8.6 (Windows 7), Board: "Arduino Mini, ATmega328P"

Build options changed, rebuilding all
In file included from C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:5:0:

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.h:28:24: error: variable or field 'SSD1331_write_cmd' declared void

 void SSD1331_write_cmd(gU8 cmd);

                        ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.h:28:24: error: 'gU8' was not declared in this scope

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.h:29:25: error: variable or field 'SSD1331_write_data' declared void

 void SSD1331_write_data(gU8 data);

                         ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.h:29:25: error: 'gU8' was not declared in this scope

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:29:23: error: variable or field 'writeGPIO' declared void

 static void writeGPIO(gU8 regAddr, gU8 regData)

                       ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:29:23: error: 'gU8' was not declared in this scope

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:29:36: error: 'gU8' was not declared in this scope

 static void writeGPIO(gU8 regAddr, gU8 regData)

                                    ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp: In function 'void SSD1331_init_board()':

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:45:34: error: 'writeGPIO' was not declared in this scope

  writeGPIO(GPIO_RegData,~GPIO_RES);//reset low, CS/other pins high

                                  ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp: In function 'void SSD1331_releasebus()':

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:68:42: error: 'writeGPIO' was not declared in this scope

  writeGPIO(GPIO_RegData,GPIO_TRANSFER_END);

                                          ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp: At global scope:

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:72:24: error: variable or field 'SSD1331_write_cmd' declared void

 void SSD1331_write_cmd(gU8 cmd) {

                        ^

C:\Users\ghost\Documents\Arduino\libraries\gfx\board_SSD1331.cpp:72:24: error: 'gU8' was not declared in this scope

Multiple libraries were found for "gfx.h"
 Used: C:\Users\ghost\Documents\Arduino\libraries\gfx
 Not used: C:\Users\ghost\Documents\Arduino\libraries\ugfx_2.9
exit status 1
Error compiling for board Arduino Mini.

 

readme.txt

Edited by Uup115
Link to comment
Share on other sites

  • 4 weeks later...

In your board_SSD1331.cpp at the top of the file above all other #include's try adding...

#include "gfx.h"

This compile error has likely been introduced in V2.9 because we have changed lots of type names and unfortunately we don't get to test every platform before release.

Let us know if this works.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...