Why did you use the for loop to clear out the guess list? I was trying to get fancy with creating a separate function to clear the list using your method for other reasons and discovered a .clear() function that does the same thing.
I didn't know any other way to do it, just from the limited python knowledge I have working with lists but now I also know about the .clear() function. Most of the things I make or videos was me learning it myself then documenting it, because people explain different. Thanks for the feedback
A matrix keypad is essentially a grid of switches, each switch being identified by its row and column. To determine which key is pressed, the microcontroller sets one of the lines (row or column) high (or low, depending on the setup), and then reads the other lines. If a key is pressed, it will connect a row line with a column line, and the microcontroller will read a high (or low) value on the corresponding line. Whether you choose to set rows or columns as inputs or outputs depends on your specific needs or constraints, such as the physical layout of your circuit or the specific requirements of your microcontroller's GPIO pins. So in short you can switch it
Yes you are correct, my coding is not perfect or probably most efficient sometimes (hence the double set to high), now it is an awkward situation because if I update the code on GitHub and someone watch the video they might be confused even more what is going on.
I would like to use the keypad for an lcd screen as i am doing a project which when i enter characters from the keypad they will show up on an lcd screen but when i execute the keypad does not work on the lcd and the gpios are all inputted correctly
*a small error made in last circuit, remember to add a resistor in series with LED to limit current.
Can u use the number pad as an macro keyboard?
yes you can, still input so instead of assigning a value to key, it will just act as keypress then do specific macro.
@@LightSkip_rb
This helped me a lot, thank you so much!
Glad it helped!
Great explanation, thanks!
Glad it was helpful!
THANK YOU
you are welcome
nice clean code,thanks for sharing.
Thanks!
Welcome! and thank you
Could you explain about .high() and .low() in your code please?
the .high() is to set the pin to 1 this would be the same as saying .value(1) and .low() to set pin to 0 similar to value(0)
Why did you use the for loop to clear out the guess list? I was trying to get fancy with creating a separate function to clear the list using your method for other reasons and discovered a .clear() function that does the same thing.
I didn't know any other way to do it, just from the limited python knowledge I have working with lists but now I also know about the .clear() function. Most of the things I make or videos was me learning it myself then documenting it, because people explain different. Thanks for the feedback
hi i really hope you answer me i am confused why did you put the rows as input and why did you put the columns as outputs
A matrix keypad is essentially a grid of switches, each switch being identified by its row and column. To determine which key is pressed, the microcontroller sets one of the lines (row or column) high (or low, depending on the setup), and then reads the other lines. If a key is pressed, it will connect a row line with a column line, and the microcontroller will read a high (or low) value on the corresponding line.
Whether you choose to set rows or columns as inputs or outputs depends on your specific needs or constraints, such as the physical layout of your circuit or the specific requirements of your microcontroller's GPIO pins.
So in short you can switch it
How Input High on pressing as we are not giving any voltage to the pin?
The rows are set as output so we set each row High Output (3.3V) then we check all the columns to see if any input goes High.
@@NerdCaveYT thank u
Why did you set the value of the row pins to 1 when you did set the pins ? When you scan the keys then are all the row pins hight, right?
Yes you are correct, my coding is not perfect or probably most efficient sometimes (hence the double set to high), now it is an awkward situation because if I update the code on GitHub and someone watch the video they might be confused even more what is going on.
So i can just delet „row_pin.value(1)“@@NerdCaveYT
Short, simple, consice. Must be a programmer or have an analytical mind!
I am a novice programmer but I do think tutorials that take 10 minutes to explain something in half the time is not needed.
Very nice'
Thank you
I would like to use the keypad for an lcd screen as i am doing a project which when i enter characters from the keypad they will show up on an lcd screen but when i execute the keypad does not work on the lcd and the gpios are all inputted correctly
so the text appears on screen then after you press enter everything is gone? Did you clear the screen and then write the new output to your LCD?
How i can print the words in horizontal form? Like as: 1 2 3 4
No
1
2
3
4
Good vídeo
print(matrix_keys[row][col],end=" ") you will use the end = " " so it will print out in a single line
@@NerdCaveYT Thanks, I'll do; Greetings from Perú
good video bit any similar video which uses circuit python?
I plan to just redo all the sensors and modules in CircuitPython before the week is over there will be a video available
Nice Video, but where do i get the imports from.
do you mean from machine import Pin?
At first i thought you were European
Then i heard of say matrix with that south african R
Yes everyone can easily spot me by sound even here in China