brendansimon / micropython_experiments Goto Github PK
View Code? Open in Web Editor NEWA place to share my micropython experimental code
A place to share my micropython experimental code
Shouldn't the index be key_code + col
self.key_char = self.keys[key_code + col]
Hey,
I'm trying to implement a key/button matrix on the esp8266/esp32 development board and came across your implementation. I realized I have to switch out pyb
for machine
and use time_sleep()
for delay
. I was also able to upload the main.py
file to the esp8266. However, I'm getting the following error(s):
main_test(): start Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 197, in <module> File "<string>", line 175, in main_test File "<string>", line 37, in __init__ File "<string>", line 63, in init File "<string>", line 63, in <listcomp> TypeError: can't convert str to int
I'd really appreciate any help/advice you might have here. Did you make your own button matrix? If yes, do you have a wiring diagram?
Again, any insights would be greatly appreciated!
It would be of a great help, if you could share some information on wiring.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.