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

Compilation error: expected '}' at end of input #78

Open
Enxasped opened this issue May 4, 2024 · 0 comments
Open

Compilation error: expected '}' at end of input #78

Enxasped opened this issue May 4, 2024 · 0 comments

Comments

@Enxasped
Copy link

Enxasped commented May 4, 2024

I'm having a trouble with the Library, the console always when i will upload the code, says it has an issue with my code, "Compilation error: expected '}' at end of input", but i tryed to fix that but my cone has'nt any issue with the '}', the copilation error code is:

C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202444-115340-1l23p1f.0q17\sketch_may4b\sketch_may4b.ino:30:1: error: expected '}' at end of input
}
^
In file included from C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202444-115340-1l23p1f.0q17\sketch_may4b\sketch_may4b.ino:2:0:
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h: In member function 'void TFT_ILI9163C::drawArc(uint16_t, uint16_t, uint16_t, uint16_t, float, float, uint16_t)':
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:204:7: error: 'drawArcHelper' was not declared in this scope
drawArcHelper(cx, cy, radius, thickness, 0, _arcAngleMax, color);
^~~~~~~~~~~~~
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:204:7: note: suggested alternative: 'drawCircle'
drawArcHelper(cx, cy, radius, thickness, 0, _arcAngleMax, color);
^~~~~~~~~~~~~
drawCircle
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:206:7: error: 'drawArcHelper' was not declared in this scope
drawArcHelper(cx, cy, radius, thickness, start + (_arcAngleOffset / (float)360)_arcAngleMax, end + (_arcAngleOffset / (float)360)_arcAngleMax, color);
^~~~~~~~~~~~~
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:206:7: note: suggested alternative: 'drawCircle'
drawArcHelper(cx, cy, radius, thickness, start + (_arcAngleOffset / (float)360)_arcAngleMax, end + (_arcAngleOffset / (float)360)_arcAngleMax, color);
^~~~~~~~~~~~~
drawCircle
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h: In member function 'virtual size_t TFT_ILI9163C::write(uint8_t)':
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:233:37: error: '_textWrite' was not declared in this scope
virtual size_t write(uint8_t b) { _textWrite((const char *)&b, 1); return 1;}
^~~~~~~~~~
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:233:37: note: suggested alternative: '_textWrap'
virtual size_t write(uint8_t b) { _textWrite((const char )&b, 1); return 1;}
^~~~~~~~~~
_textWrap
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h: In member function 'virtual size_t TFT_ILI9163C::write(const uint8_t
, size_t)':
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:234:61: error: '_textWrite' was not declared in this scope
virtual size_t write(const uint8_t *buffer, size_t size) {_textWrite((const char *)buffer, size); return size;}
^~~~~~~~~~
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:234:61: note: suggested alternative: '_textWrap'
virtual size_t write(const uint8_t *buffer, size_t size) {_textWrite((const char *)buffer, size); return size;}
^~~~~~~~~~
_textWrap
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h: In member function 'void TFT_ILI9163C::enableCommandStream()':
C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C/TFT_ILI9163C.h:357:34: error: a function-definition is not allowed here before '{' token
attribute((always_inline)) { *rsport |= dcpinmask;//hi }
^
C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202444-115340-1l23p1f.0q17\sketch_may4b\sketch_may4b.ino:30:1: error: expected '}' at end of input
}
^
C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202444-115340-1l23p1f.0q17\sketch_may4b\sketch_may4b.ino: At global scope:
C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202444-115340-1l23p1f.0q17\sketch_may4b\sketch_may4b.ino:30:1: error: expected unqualified-id at end of input
Multiple libraries were found for "TFT_ILI9163C.h"
Used: C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C
Not used: C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C-1.0
Not used: C:\Users\User\Documents\Arduino\libraries\TFT_ILI9163C-master
exit status 1

Compilation error: expected '}' at end of input

this issue is in the examle bigtest too, the code that i used is:

#include <SPI.h>
#include <TFT_ILI9163C.h>

#define TFT_CS 10
#define TFT_RST 9
#define TFT_DC 8

TFT_ILI9163C tft = TFT_ILI9163C(TFT_CS, TFT_DC, TFT_RST);

void setup() {
tft.begin();

tft.setTextColor(ILI9163C_WHITE);
tft.fillScreen(ILI9163C_BLACK);

tft.setTextSize(2);

tft.setCursor(10, tft.height() / 2 - 10);
tft.print("Hello, World!");
}

void loop() {

}

sorry for my english :)

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