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

FT6336U::FT6336U(int8_t sda, int8_t scl, uint8_t rst_n, uint8_t int_n) #6

Open
Zhentao-Lin opened this issue Mar 28, 2023 · 3 comments

Comments

@Zhentao-Lin
Copy link

Zhentao-Lin commented Mar 28, 2023

I use ESP32S3 and the code configuration is as follows.

#define I2C_SDA 2
#define I2C_SCL 1
#define RST_N_PIN -1
#define INT_N_PIN -1
FT6336U ft6336u(I2C_SDA, I2C_SCL, RST_N_PIN, INT_N_PIN);

When I looked at the serial port, after each reset, the serial port printed the following, of course, ft6336 is working normally.
E (16) gpio: gpio_set_level(226): GPIO output gpio_num error
E (26) gpio: gpio_set_level(226): GPIO output gpio_num error

I checked the FT6336U.cpp file. The problem is with the function digitalWrite(rst n, X).
It is located on lines 44 and 46.
I printed the values for rst_n and int_n and found that they were both 255, not -1.
So. I submit feedback to you.

@pistojim
Copy link

at STM32f103 needs only : FT6336U ft6336u(RST_N_PIN, INT_N_PIN);

@asasaki-shiftall
Copy link

This library needs to set the REAL gpio num for RST_N and INT_N. It means I assume the circuit will connect RST_N and INT_N to FT6336U.
But I did not write error handling. So, I do not guarantee that it will work properly if you don't set RST_N pin and INT_N pin.

@Davi512
Copy link

Davi512 commented Sep 27, 2024

I use ESP32S3 and the code configuration is as follows.

#define I2C_SDA 2

#define I2C_SCL 1

#define RST_N_PIN -1

#define INT_N_PIN -1

FT6336U ft6336u(I2C_SDA, I2C_SCL, RST_N_PIN, INT_N_PIN);

When I looked at the serial port, after each reset, the serial port printed the following, of course, ft6336 is working normally.

E (16) gpio: gpio_set_level(226): GPIO output gpio_num error

E (26) gpio: gpio_set_level(226): GPIO output gpio_num error

I checked the FT6336U.cpp file. The problem is with the function digitalWrite(rst n, X).

It is located on lines 44 and 46.

I printed the values for rst_n and int_n and found that they were both 255, not -1.

So. I submit feedback to you.

It work only on SDA and SCL
Pins?

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

4 participants