Skip to content
Discussion options

You must be logged in to vote

It's true there's no built-in python method for multi-dimensional arrays (on desktop or micropython)

For basic needs like this I'd generally just use a "list of lists", this looks like a good example: https://snakify.org/en/lessons/two_dimensional_lists_arrays/

If you need to do more serious processing, the ulab project might be what you need, they provide firmware builds with ulab included: https://github.com/v923z/micropython-ulab

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@KlaireLarnia
Comment options

@rkompass
Comment options

@2dof
Comment options

Comment options

andrewleech
Nov 20, 2023
Collaborator Sponsor

You must be logged in to vote
2 replies
@KlaireLarnia
Comment options

@peterhinch
Comment options

Answer selected by KlaireLarnia
Comment options

You must be logged in to vote
1 reply
@peterhinch
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants