Yea i did so,
put main.cpp project and initialized it, no luck
I also opened a new ticket meanwhile i have the same issue with CLION,
x64 win7
I can easily build from cmd
platformio run
but not from IDE
tried codeblocks but
|-- <Adafruit PCD8544 Nokia 5110 LCD library> v1.0.1
| |-- v1.0
| |-- v1.1.5
|-- <Bounce_switch>
|-- v2.0
|-- v1.1.5
Compiling .pioenvs\pro8MHzatmega168\src\spot.o
In file included from src\spot.c:20:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:7
2:1: error: unknown type name 'class’
class SPISettings {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:7
2:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
class SPISettings {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:1
56:1: error: unknown type name 'class’
class SPIClass {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:1
56:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
class SPIClass {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:3
22:8: error: unknown type name 'SPIClass’
extern SPIClass SPI;
^
In file included from src\spot.c:23:0:
lib\Bounce_switch/Switch.h:13:1: error: unknown type name 'class’
class Switch
^
lib\Bounce_switch/Switch.h:14:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attr
ibute’ before ‘{’ token
{
^
In file included from src\spot.c:25:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPR
OM.h:38:5: error: expected specifier-qualifier-list before 'EERef’
EERef( const int index )
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPR
OM.h:89:5: error: expected specifier-qualifier-list before 'EEPtr’
EEPtr( const int index )
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPR
OM.h:119:5: error: unknown type name 'EERef’
EERef operator[]( const int idx ) { return idx; }
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPR
OM.h:119:42: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘attribute’ before ‘{’ to
ken
EERef operator[]( const int idx ) { return idx; }
^
In file included from src\spot.c:25:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPR
OM.h:145:8: error: unknown type name ‘EEPROMClass’
static EEPROMClass EEPROM;
^
In file included from C:\Users\evo.platformio\packages\framework-arduinoavr\cor
es\arduino/Print.h:27:0,
from lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:6,
from src\spot.c:33:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h
:25:1: error: unknown type name ‘class’
class Print;
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h
:33:1: error: unknown type name ‘class’
class Printable
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h
:34:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
{
^
In file included from lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:6:0,
from src\spot.c:33:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Print.h:34:
1: error: unknown type name ‘class’
class Print
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Print.h:35:
1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
{
^
In file included from src\spot.c:33:0:
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:13:1: error: unknown type name ‘c
lass’
class Adafruit_GFX : public Print {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:13:20: error: expected ‘=’, ‘,’,
’;’, ‘asm’ or ‘attribute’ before ‘:’ token
class Adafruit_GFX : public Print {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:107:1: error: unknown type name ‘
class’
class Adafruit_GFX_Button {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:107:27: error: expected ‘=’, ‘,’,
’;’, ‘asm’ or ‘attribute’ before ‘{’ token
class Adafruit_GFX_Button {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:133:1: error: unknown type name ‘
class’
class GFXcanvas1 : public Adafruit_GFX {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:133:18: error: expected ‘=’, ‘,’,
’;’, ‘asm’ or ‘attribute’ before ‘:’ token
class GFXcanvas1 : public Adafruit_GFX {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:145:1: error: unknown type name ‘
class’
class GFXcanvas16 : public Adafruit_GFX {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:145:19: error: expected ‘=’, ‘,’,
’;’, ‘asm’ or ‘attribute’ before ‘:’ token
class GFXcanvas16 : public Adafruit_GFX {
^
In file included from src\spot.c:34:0:
lib\Adafruit PCD8544 Nokia 5110 LCD library_ID81/Adafruit_PCD8544.h:69:1: error:
unknown type name 'class’
class Adafruit_PCD8544 : public Adafruit_GFX {
^
lib\Adafruit PCD8544 Nokia 5110 LCD library_ID81/Adafruit_PCD8544.h:69:24: error
: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ tokenC
ompiling .pioenvs\pro8MHzatmega168\FrameworkArduino\new.oc
lass Adafruit_PCD8544 : public Adafruit_GFX {
^
src\spot.c:59:1: error: unknown type name 'Adafruit_PCD8544’
Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
^
src\spot.c:59:1: warning: implicit declaration of function ‘Adafruit_PCD8544’ [-
Wimplicit-function-declaration]
src\spot.c:59:1: error: initializer element is not constant
src\spot.c:114:1: error: unknown type name 'Switch’
Switch left=Switch(8,INPUT_PULLUP);
^
src\spot.c:114:1: warning: implicit declaration of function ‘Switch’ [-Wimplicit
-function-declaration]C
ompiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring.o
src\spot.c:114:1: error: initializer element is not constant
src\spot.c:115:1: error: unknown type name 'Switch’
Switch right=Switch(12,INPUT_PULLUP);
^
src\spot.c:115:1: error: initializer element is not constant
src\spot.c:116:1: error: unknown type name 'Switch’
Switch weldButton(weldButtonPin,INPUT_PULLUP);Compiling .pioenvs\pro8MHzatmega16
8\FrameworkArduino\wiring_analog.o
^
In file included from C:\Users\evo.platformio\packages\framework-arduinoavr\lib
raries\SPI\src/SPI.h:17:0,
from src\spot.c:20:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Arduino.h:4
5:22: error: expected ‘)’ before numeric constant
#define INPUT_PULLUP 0x2
^
src\spot.c:116:33: note: in expansion of macro 'INPUT_PULLUP’
Switch weldButton(weldButtonPin,INPUT_PULLUP);
^
src\spot.c:125:21: error: expected ‘)’ before ‘&’ token
void impulse(Switch &button, int &reading);
^
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_digital.osrc\spot.c:
126:22: error: expected ‘)’ before ‘&’ token
void impulse1(Switch &button,int value);
^
src\spot.c:128:27: error: unknown type name 'String’
void set_text(int x,int y,String text,int color);
^
src\spot.c: In function ‘setup’:
src\spot.c:140:9: error: request for member ‘get’ in something not a structure o
r union
EEPROM.get(0, data[0].value);Compiling .pioenvs\pro8MHzatmega168\FrameworkArduin
o\wiring_pulse.o
^
src\spot.c:141:9: error: request for member ‘get’ in something not a structure o
r union
EEPROM.get(2, data[1].value);
^
src\spot.c:158:10: error: request for member ‘begin’ in something not a structur
e or union
display.begin();
^
src\spot.c:161:10: error: request for member ‘setContrast’ in something not a st
ructure or union
display.setContrast(53);
^
src\spot.c:164:10: error: request for member ‘clearDisplay’ in something not a s
tructure or union
display.clearDisplay(); // clears the screen and buffer
^Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\wiring_shift.o
src\spot.c:169:1: error: ‘weldButton’ undeclared (first use in this function)
weldButton.poll();
^
src\spot.c:169:1: note: each undeclared identifier is reported only once for eac
h function it appears in
src\spot.c: In function ‘init_screen’:
src\spot.c:175:10: error: request for member ‘setTextSize’ in something not a st
ructure or union
display.setTextSize(1);
^
src\spot.c:176:21: warning: comparison between pointer and integer
for(i=0;set[i].size != NULL;i++){
^
src\spot.c:179:10: error: request for member ‘fillRect’ in something not a struc
ture or union
display.fillRect(set[i].axis[0],set[i].axis[1],set[i].axis[2],set[i].axis[3],set
[i].inv);
^
src\spot.c:180:3: warning: implicit declaration of function ‘set_text’ [-Wimplic
it-function-declaration]
set_text(set[i].axis[0]+2,set[i].axis[1]+1,String(set[i].logo),!set[i].inv);
^
src\spot.c:180:3: warning: implicit declaration of function ‘String’ [-Wimplicit
-function-declaration]
src\spot.c: In function ‘display_data’:
src\spot.c:185:28: warning: comparison between pointer and integer
for(int i=0;data[i].size != NULL;i++){
^
src\spot.c: In function ‘display_data_single’:
src\spot.c:193:10: error: request for member ‘setTextSize’ in something not a st
ructure or union
display.setTextSize(2);
^
src\spot.c:194:10: error: request for member ‘fillRect’ in something not a struc
ture or union
Compiling .pioenvs\pro8MHzatmega168\lib\SPI\SPI.odisplay.fillRect(data[i].axis[0
],data[i].axis[1],data[i].axis[2],data[i].axis[3],data[i].inv);
^
src\spot.c: In function ‘loop’:
src\spot.c:205:9: error: request for member ‘poll’ in something not a structure
or union
left.poll();
^
src\spot.c:206:9: error: request for member ‘poll’ in something not a structure
or union
right.poll();
^
src\spot.c:208:12: error: request for member ‘longPress’ in something not a stru
cture or union
if(left.longPress() and !right.on()){ digitalWrite(green,LOW);impulse2();digi
talWrite(green,HIGH); }
^
src\spot.c:208:25: error: expected ‘)’ before 'and’
if(left.longPress() and !right.on()){ digitalWrite(green,LOW);impulse2();digi
talWrite(green,HIGH); }
^
src\spot.c:210:12: error: request for member ‘pushed’ in something not a structu
re or union
if(left.pushed() and !right.on()){
^
src\spot.c:210:22: error: expected ‘)’ before 'and’
if(left.pushed() and !right.on()){
^
src\spot.c:224:7: error: ‘weldButton’ undeclared (first use in this function)
weldButton.poll();
^
src\spot.c: At top level:
src\spot.c:297:21: error: expected ‘)’ before ‘&’ token
void impulse1(Switch& button,int val){
^
src\spot.c: In function ‘impulse2’:
src\spot.c:318:11: error: request for member ‘poll’ in something not a structure
or union
left.poll();
^
src\spot.c:319:12: error: request for member ‘poll’ in something not a structure
or union
right.poll();
^
src\spot.c:321:13: error: request for member ‘longPress’ in something not a stru
cture or union
if (left.longPress()) save_eprom();
^
src\spot.c:323:7: error: ‘potread’ undeclared (first use in this function)
potread =map(analogRead(pot),1024,1,1,999);
^
src\spot.c:323:7: warning: implicit declaration of function ‘map’ [-Wimplicit-fu
nction-declaration]
src\spot.c:324:6: error: ‘val’ undeclared (first use in this function)
data[val].value=potread;
^
src\spot.c:316:5: warning: unused variable ‘i’ [-Wunused-variable]
int i=0;
^
src\spot.c: At top level:
src\spot.c:354:27: error: unknown type name 'String’
void set_text(int x,int y,String text,int color){
^
*** [.pioenvs\pro8MHzatmega168\src\spot.o] Error 1
========================== [ERROR] Took 1.33 seconds ==========================
Process returned 1 (0x1) execution time : 1.651 s
Press any key to continue.
tried netbeans
cd 'C:\Downloads\netbeans\spot’
platformio.exe -f -c netbeans run
[12/12/16 03:17:43] Processing pro8MHzatmega168 (platform: atmelavr, board: pro8MHzatmega168, framework: arduino)
Verbose mode can be enabled via -v, --verbose
option
Collected 32 compatible libraries
Looking for dependencies…
Library Dependency Graph
|-- v1.1.5
| |--
|-- v1.0
| |--
|-- v2.0
|-- <Adafruit PCD8544 Nokia 5110 LCD library> v1.0.1
| |-- v1.0
| | |--
| |--
| |-- v1.1.5
| | |--
|-- <Bounce_switch>
| |--
|--
Compiling .pioenvs\pro8MHzatmega168\src\newmain.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\IPAddress.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\PluggableUSB.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\Print.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\Stream.o
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\Tone.o
In file included from src\newmain.c:19:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:72:1: error: unknown type name 'class’
class SPISettings {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:72:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
class SPISettings {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:156:1: error: unknown type name 'class’
class SPIClass {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:156:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
class SPIClass {
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:322:8: error: unknown type name 'SPIClass’
extern SPIClass SPI;
^
In file included from src\newmain.c:22:0:
lib\Bounce_switch/Switch.h:13:1: error: unknown type name 'class’
class Switch
^
lib\Bounce_switch/Switch.h:14:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
{
^
In file included from src\newmain.c:24:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPROM.h:38:5: error: expected specifier-qualifier-list before 'EERef’
EERef( const int index )
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPROM.h:89:5: error: expected specifier-qualifier-list before 'EEPtr’
EEPtr( const int index )
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPROM.h:119:5: error: unknown type name 'EERef’
EERef operator[]( const int idx ) { return idx; }
^
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPROM.h:119:42: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘attribute’ before ‘{’ token
EERef operator[]( const int idx ) { return idx; }
^
In file included from src\newmain.c:24:0:
C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\EEPROM\src/EEPROM.h:145:8: error: unknown type name 'EEPROMClass’
static EEPROMClass EEPROM;
^
In file included from C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Print.h:27:0,
from lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:6,
from src\newmain.c:32:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h:25:1: error: unknown type name 'class’
class Print;
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h:33:1: error: unknown type name 'class’
class Printable
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Printable.h:34:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
{
^
In file included from lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:6:0,
from src\newmain.c:32:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Print.h:34:1: error: unknown type name 'class’
class Print
^
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Print.h:35:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
{
^
In file included from src\newmain.c:32:0:
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:13:1: error: unknown type name 'class’
class Adafruit_GFX : public Print {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:13:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ token
class Adafruit_GFX : public Print {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:107:1: error: unknown type name 'class’
class Adafruit_GFX_Button {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:107:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
class Adafruit_GFX_Button {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:133:1: error: unknown type name 'class’
class GFXcanvas1 : public Adafruit_GFX {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:133:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ token
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\USBCore.o
class GFXcanvas1 : public Adafruit_GFX {
Compiling .pioenvs\pro8MHzatmega168\FrameworkArduino\WInterrupts.o
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:145:1: error: unknown type name 'class’
class GFXcanvas16 : public Adafruit_GFX {
^
lib\Adafruit-GFX-Library-master/Adafruit_GFX.h:145:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ token
class GFXcanvas16 : public Adafruit_GFX {
^
In file included from src\newmain.c:33:0:
lib\Adafruit PCD8544 Nokia 5110 LCD library_ID81/Adafruit_PCD8544.h:69:1: error: unknown type name 'class’
class Adafruit_PCD8544 : public Adafruit_GFX {
^
lib\Adafruit PCD8544 Nokia 5110 LCD library_ID81/Adafruit_PCD8544.h:69:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ token
class Adafruit_PCD8544 : public Adafruit_GFX {
^
src\newmain.c:58:1: error: unknown type name 'Adafruit_PCD8544’
Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
^
src\newmain.c:58:1: warning: implicit declaration of function ‘Adafruit_PCD8544’ [-Wimplicit-function-declaration]
src\newmain.c:58:1: error: initializer element is not constant
src\newmain.c:113:1: error: unknown type name 'Switch’
Switch left=Switch(8,INPUT_PULLUP);
^
src\newmain.c:113:1: warning: implicit declaration of function ‘Switch’ [-Wimplicit-function-declaration]
src\newmain.c:113:1: error: initializer element is not constant
src\newmain.c:114:1: error: unknown type name 'Switch’
Switch right=Switch(12,INPUT_PULLUP);
^
src\newmain.c:114:1: error: initializer element is not constant
src\newmain.c:115:1: error: unknown type name 'Switch’
Switch weldButton(weldButtonPin,INPUT_PULLUP);
^
In file included from C:\Users\evo.platformio\packages\framework-arduinoavr\libraries\SPI\src/SPI.h:17:0,
from src\newmain.c:19:
C:\Users\evo.platformio\packages\framework-arduinoavr\cores\arduino/Arduino.h:45:22: error: expected ‘)’ before numeric constant
#define INPUT_PULLUP 0x2
^
src\newmain.c:115:33: note: in expansion of macro 'INPUT_PULLUP’
Switch weldButton(weldButtonPin,INPUT_PULLUP);
^
src\newmain.c:124:21: error: expected ‘)’ before ‘&’ token
void impulse(Switch &button, int &reading);
^
src\newmain.c:125:22: error: expected ‘)’ before ‘&’ token
void impulse1(Switch &button,int value);
^
src\newmain.c:127:27: error: unknown type name 'String’
void set_text(int x,int y,String text,int color);
^
src\newmain.c: In function ‘setup’:
src\newmain.c:139:9: error: request for member ‘get’ in something not a structure or union
EEPROM.get(0, data[0].value);
^
src\newmain.c:140:9: error: request for member ‘get’ in something not a structure or union
EEPROM.get(2, data[1].value);
^
src\newmain.c:157:10: error: request for member ‘begin’ in something not a structure or union
display.begin();
^
src\newmain.c:160:10: error: request for member ‘setContrast’ in something not a structure or union
display.setContrast(53);
^
src\newmain.c:163:10: error: request for member ‘clearDisplay’ in something not a structure or union
display.clearDisplay(); // clears the screen and buffer
^
src\newmain.c:168:1: error: ‘weldButton’ undeclared (first use in this function)
weldButton.poll();
^
src\newmain.c:168:1: note: each undeclared identifier is reported only once for each function it appears in
src\newmain.c: In function ‘init_screen’:
src\newmain.c:174:10: error: request for member ‘setTextSize’ in something not a structure or union
display.setTextSize(1);
^
src\newmain.c:175:21: warning: comparison between pointer and integer
for(i=0;set[i].size != NULL;i++){
^
src\newmain.c:178:10: error: request for member ‘fillRect’ in something not a structure or union
display.fillRect(set[i].axis[0],set[i].axis[1],set[i].axis[2],set[i].axis[3],set[i].inv);
^
src\newmain.c:179:3: warning: implicit declaration of function ‘set_text’ [-Wimplicit-function-declaration]
set_text(set[i].axis[0]+2,set[i].axis[1]+1,String(set[i].logo),!set[i].inv);
^
src\newmain.c:179:3: warning: implicit declaration of function ‘String’ [-Wimplicit-function-declaration]
src\newmain.c: In function ‘display_data’:
src\newmain.c:184:28: warning: comparison between pointer and integer
for(int i=0;data[i].size != NULL;i++){
^
src\newmain.c: In function ‘display_data_single’:
src\newmain.c:192:10: error: request for member ‘setTextSize’ in something not a structure or union
display.setTextSize(2);
^
src\newmain.c:193:10: error: request for member ‘fillRect’ in something not a structure or union
display.fillRect(data[i].axis[0],data[i].axis[1],data[i].axis[2],data[i].axis[3],data[i].inv);
^
src\newmain.c: In function ‘loop’:
src\newmain.c:204:9: error: request for member ‘poll’ in something not a structure or union
left.poll();
^
src\newmain.c:205:9: error: request for member ‘poll’ in something not a structure or union
right.poll();
^
src\newmain.c:207:12: error: request for member ‘longPress’ in something not a structure or union
if(left.longPress() and !right.on()){ digitalWrite(green,LOW);impulse2();digitalWrite(green,HIGH); }
^
src\newmain.c:207:25: error: expected ‘)’ before 'and’
if(left.longPress() and !right.on()){ digitalWrite(green,LOW);impulse2();digitalWrite(green,HIGH); }
^
src\newmain.c:209:12: error: request for member ‘pushed’ in something not a structure or union
if(left.pushed() and !right.on()){
^
src\newmain.c:209:22: error: expected ‘)’ before 'and’
if(left.pushed() and !right.on()){
^
src\newmain.c:223:7: error: ‘weldButton’ undeclared (first use in this function)
weldButton.poll();
^
src\newmain.c: At top level:
src\newmain.c:296:21: error: expected ‘)’ before ‘&’ token
void impulse1(Switch& button,int val){
^
src\newmain.c: In function ‘impulse2’:
src\newmain.c:317:11: error: request for member ‘poll’ in something not a structure or union
left.poll();
^
src\newmain.c:318:12: error: request for member ‘poll’ in something not a structure or union
right.poll();
^
src\newmain.c:320:13: error: request for member ‘longPress’ in something not a structure or union
if (left.longPress()) save_eprom();
^
src\newmain.c:322:7: error: ‘potread’ undeclared (first use in this function)
potread =map(analogRead(pot),1024,1,1,999);
^
src\newmain.c:322:7: warning: implicit declaration of function ‘map’ [-Wimplicit-function-declaration]
src\newmain.c:323:6: error: ‘val’ undeclared (first use in this function)
data[val].value=potread;
^
src\newmain.c:315:5: warning: unused variable ‘i’ [-Wunused-variable]
int i=0;
^
src\newmain.c: At top level:
src\newmain.c:353:27: error: unknown type name 'String’
void set_text(int x,int y,String text,int color){
^
*** [.pioenvs\pro8MHzatmega168\src\newmain.o] Error 1
[ERROR] Took 1.91 seconds
BUILD FAILED (exit value 1, total time: 2s)