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

Cant compile for esp32 #1

Open
mahmeh opened this issue Apr 20, 2021 · 2 comments
Open

Cant compile for esp32 #1

mahmeh opened this issue Apr 20, 2021 · 2 comments

Comments

@mahmeh
Copy link

mahmeh commented Apr 20, 2021

Trying to compile this for a sparkfun micromod esp32

I get the following error:

"In file included from C:\Users\mansh\AppData\Local\Temp\arduino_modified_sketch_743072\AT42QT.ino:1:0:
C:\Users\mansh\Documents\Arduino\libraries\AT42QT-master/AT42QT.h:46:18: error: 'QT_I2C_ADDRESS' was not declared in this scope
uint8_t addr = QT_I2C_ADDRESS;
^
C:\Users\mansh\AppData\Local\Temp\arduino_modified_sketch_743072\AT42QT.ino: In function 'void setup()':
AT42QT:28:9: error: request for member 'begin' in 'touch', which is of non-class type 'AT42QT()'
touch.begin();
^
C:\Users\mansh\AppData\Local\Temp\arduino_modified_sketch_743072\AT42QT.ino: In function 'void loop()':
AT42QT:41:11: error: request for member 'IRQ_handler' in 'touch', which is of non-class type 'AT42QT()'
touch.IRQ_handler();
^
exit status 1
request for member 'begin' in 'touch', which is of non-class type 'AT42QT()'"

@peterpolidoro
Copy link

The line:
AT42QT touch();
should instead be:
AT42QT touch;

I have modified that line and a couple of others in a small pull request #2

@mike-rankin
Copy link

mike-rankin commented May 17, 2023

Just wondering if you solved your QT_I2C_ADDRESS error because I'm having the same issue. Mine is:
`
In file included from C:\Utility\Dropbox\Arduino Code\Work\C-01-221_ESP32_Door\Touch_Test\Touch_Test.ino:1:
c:\Users\mrankin\Documents\Arduino\libraries\AT42QT-master/AT42QT.h:46:18: error: 'QT_I2C_ADDRESS' was not declared in this scope
uint8_t addr = QT_I2C_ADDRESS;
^~~~~~~~~~~~~~
c:\Users\mrankin\Documents\Arduino\libraries\AT42QT-master/AT42QT.h:46:18: note: suggested alternative: 'I2C_ADDRESS'
uint8_t addr = QT_I2C_ADDRESS;
^~~~~~~~~~~~~~
I2C_ADDRESS

exit status 1

Compilation error: exit status 1
`

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

3 participants