sensor_vn used as GPIO39 input
Posted: Wed Jan 13, 2021 4:21 pm
Hello,
I am trying to connect a 3x4 keyboard using Keypad.h library example.
I wish to use GPIO 26, 25, 33, 32, 35, 34, 39 as input.
I put 10k pull-up resistors for GPIO 35, 34 and 39.
I have to use code as follow:
Case 1 works:
Case 2 does not work:
In case 2, nothing happens when I press keys of column 3.
The problem should come from GPIO35. But why is it working in case 1?
So maybe the problem comes from the use of GPIO39?
Am I using the right pull-up for GPIO39?
Has it something to do with the capacitor of GPIO39?
The use of GPIO39 disables GPIO35?
Thank you for your help!
Francis
I am trying to connect a 3x4 keyboard using Keypad.h library example.
I wish to use GPIO 26, 25, 33, 32, 35, 34, 39 as input.
I put 10k pull-up resistors for GPIO 35, 34 and 39.
I have to use code as follow:
Code: Select all
byte rowPins[ROWS] = {R1, R2, R3, R4};
byte colPins[COLS] = {C1, C2, C3};
Code: Select all
byte rowPins[ROWS] = {26, 34, 35, 33};
byte colPins[COLS] = {25, 27, 32};
Code: Select all
byte rowPins[ROWS] = {25, 39, 34, 32};
byte colPins[COLS] = {33, 26, 35};
The problem should come from GPIO35. But why is it working in case 1?
So maybe the problem comes from the use of GPIO39?
Am I using the right pull-up for GPIO39?
Has it something to do with the capacitor of GPIO39?
The use of GPIO39 disables GPIO35?
Thank you for your help!
Francis