Jump to content
Uup115

Arduino Compile errors

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...