You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello microbit society!
I`d like to code moving average filter by using of ucollections.deque class
but when trying to import the module got the error from ucollections import deque -> "cannot import name deque"
Is deque available in the module ucollections in microbit micropython?
You mean micropython? also HERE isn't a link (other than the person linking to a fork on all the issues who are you? the fork just seems to rename micropython to minipython)
Yes it is MicroPython but as it is built it will include steps to build your own modules and continue the development. The ultimate goal is to get more people involved with MicroPython nothing more.
Hi @victorzaloga there is no deque within that module for the BBC firmware. Here is how you can see what methods are available to you in the REPL. import ucollections dir(ucollections)
That is part of the main MicroPython port have you tried flashing your device using the upstream MicroPython port? You can see instructions here -> micropython.org Download Page. I hope that helps!
Activity
mytechnotalent commentedon Sep 30, 2020
Ask this question in the next generation of micro:bit for microcontrollers which is the MiniPython programming language. Click HERE and re-ask your question. - https://github.com/mytechnotalent/minipython today!
ZanderBrown commentedon Sep 30, 2020
You mean micropython? also HERE isn't a link (other than the person linking to a fork on all the issues who are you? the fork just seems to rename micropython to minipython)
mytechnotalent commentedon Sep 30, 2020
Yes it is MicroPython but as it is built it will include steps to build your own modules and continue the development. The ultimate goal is to get more people involved with MicroPython nothing more.
victorzaloga commentedon Sep 30, 2020
question about ucollections / deque is still unclear
Anybody could help me please?
mytechnotalent commentedon Sep 30, 2020
Hi @victorzaloga there is no deque within that module for the BBC firmware. Here is how you can see what methods are available to you in the REPL.
import ucollectionsdir(ucollections)That is part of the main MicroPython port have you tried flashing your device using the upstream MicroPython port? You can see instructions here -> micropython.org Download Page. I hope that helps!