Drum rack and lights firmware examples #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "flpvsk/neogrid:example/drum-rack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
860b195765toe59e2818bfe59e2818bfto9c57c04a00@ -0,0 +145,4 @@if not col_pin.value():pressed_keys.add(key)row_pin.value(1)return set(pressed_keys)This is a (minor) memory
leakallocation inefficiency as it will create a newsetobject on every loop iteration. It's fine to returnpressed_keysdirectly.Yes, makes sense to remove it.
Out of curiousity, shouldn't python take care of cleaning up that memory once the references to the new set go out of scope?just saw your correction :)Also, not sure if it's overoptimizing things, but we could use a single integer instead of a set here. Each bit representing an on/off state of a btn. We'd have to deal with bitwise operations, but the memory footprint would likely be smaller. Maybe the amount of cycles too?
E.g.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.