Search found 42 matches
- Sun Aug 19, 2018 5:23 pm
- Forum: Programs, Libraries and Tools
- Topic: Matrix library for MicroPython
- Replies: 33
- Views: 34542
Re: Matrix library for MicroPython
There is another way to get more performance while remaining in MicroPython: use @micropython.viper https://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers/posts/664832 http://docs.micropython.org/en/v1.9.3/pyboard/reference/speed_python.html#the-viper-code-emitter I...
- Sun Aug 19, 2018 5:01 pm
- Forum: Programs, Libraries and Tools
- Topic: Matrix library for MicroPython
- Replies: 33
- Views: 34542
Re: Matrix library for MicroPython
Thanks Peter! :) Although I don't know when you would need numpy-like matrix slicing on a microcontroller, I've added the functionality on a separate flavour of umatrix called umatrix_np. This flavour also supports the shape method. The reason why I made it its own file is because I believe it's the...
- Fri Aug 17, 2018 10:52 am
- Forum: Programs, Libraries and Tools
- Topic: Matrix library for MicroPython
- Replies: 33
- Views: 34542
Re: Matrix library for MicroPython
Essentially, hardcoding the determinant and inverse functions and using local variables as often as possible to avoid referencing globals often or at least twice in the method's body. For example, certain methods require property checking before doing their job and those property checks often access...
- Fri Aug 17, 2018 8:44 am
- Forum: Programs, Libraries and Tools
- Topic: Matrix library for MicroPython
- Replies: 33
- Views: 34542
Matrix library for MicroPython
Hello all. About two years ago I needed a matrix library and the available option was jalawson's umatrix library. One of the operations I needed was 3x3 matrix inversion. However, as jalawson stated, the library wasn't designed to be particularly fast so 3x3 matrix inversion takes about 350 ms on a ...
- Wed Feb 14, 2018 6:12 am
- Forum: General Discussion and Questions
- Topic: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
- Replies: 2
- Views: 4468
Re: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
Line 7 calls func on sq3, which is set to ffilib.open("libsqlite3"). The AttributeError: 'NoneType' object has no attribute 'func' means that ffilib.open("libsqlite3") is returning None whereas it shouldn't be, as I understand it. In open's definition, the first way it can return None is if ffi isn'...
- Tue Feb 13, 2018 8:24 am
- Forum: General Discussion and Questions
- Topic: MicroPython round() Function
- Replies: 20
- Views: 26189
- Fri Feb 09, 2018 8:27 am
- Forum: General Discussion and Questions
- Topic: MicroPython round() Function
- Replies: 20
- Views: 26189
Re: MicroPython round() Function
Since this thread already has the appropriate title, has anyone tried overloading the __round__ builtin inside a class? I'm currently writing a matrix module and when I run it on Python 3.6.4 I can call round on a matrix and it returns a matrix with rounded coefficients as expected. >>> a = matrix([...
- Sat Jul 22, 2017 8:34 am
- Forum: MicroPython pyboard
- Topic: Help with digital servos and the Servo Class
- Replies: 3
- Views: 3331
- Thu Jul 13, 2017 2:19 pm
- Forum: MicroPython pyboard
- Topic: Help with digital servos and the Servo Class
- Replies: 3
- Views: 3331
Help with digital servos and the Servo Class
Hello all. I'm currently using my PYBLITE to control a digital servo (precisely the Savox SG0211MG). So far I've been able to initialize Servo instances keeping in mind the pin mapping for the PYBLITE as mentioned in this thread ( https://forum.micropython.org/viewtopic.php?t=2806 ) and get the serv...
- Sat Jul 23, 2016 12:19 pm
- Forum: MicroPython pyboard
- Topic: Can be stored data inside non volative memory ?
- Replies: 35
- Views: 34911
Re: Can be stored data inside non volative memory ?
Thank you very much for the explanation, it's clear now Also thank you for sharing your micropower module