Search found 38 matches

by Iyassou
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: 2446

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'...
by Iyassou
Tue Feb 13, 2018 8:24 am
Forum: General Discussion and Questions
Topic: MicroPython round() Function
Replies: 20
Views: 9812

Re: MicroPython round() Function

Joined Github and raised an issue.
by Iyassou
Fri Feb 09, 2018 8:27 am
Forum: General Discussion and Questions
Topic: MicroPython round() Function
Replies: 20
Views: 9812

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([...
by Iyassou
Sat Jul 22, 2017 8:34 am
Forum: MicroPython pyboard
Topic: Help with digital servos and the Servo Class
Replies: 3
Views: 1581

Re: Help with digital servos and the Servo Class

Noted. Thanks for your help guys :)
by Iyassou
Thu Jul 13, 2017 2:19 pm
Forum: MicroPython pyboard
Topic: Help with digital servos and the Servo Class
Replies: 3
Views: 1581

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...
by Iyassou
Sat Jul 23, 2016 12:19 pm
Forum: MicroPython pyboard
Topic: Can be stored data inside non volative memory ?
Replies: 35
Views: 15328

Re: Can be stored data inside non volative memory ?

Thank you very much for the explanation, it's clear now :D Also thank you for sharing your micropower module :D
by Iyassou
Sat Jul 23, 2016 8:16 am
Forum: MicroPython pyboard
Topic: Can be stored data inside non volative memory ?
Replies: 35
Views: 15328

Re: Can be stored data inside non volative memory ?

bram[0] = len(inBuffer) ba[4: 4+len(inBuffer)] = inBuffer # To retrieve bt = bytes(ba[4:4+bram[0]]) Sorry if this is a silly question but I was reading the documentation for your micropower module because I'm interested in being able to store a few strings into the 4kb RAM and there's one thing tha...
by Iyassou
Fri Jul 22, 2016 1:33 pm
Forum: MicroPython pyboard
Topic: New build seems to have killed my Pyboard (now fixed)
Replies: 23
Views: 8778

Re: New build seems to have killed my Pyboard (now fixed)

I was having the same problem when I tried to update my Pyboard: the red, orange and blue LEDs were faintly lit and it was unresponsive. Turns out I download firmware for the Pyboard and not the PYBLITE, the PYBLITE being the one I own :lol: Thankfully I had made a backup of my previous firmware: I ...
by Iyassou
Wed Jul 13, 2016 11:11 am
Forum: General Discussion and Questions
Topic: MicroPython round() Function
Replies: 20
Views: 9812

Re: MicroPython round() Function

pythoncoder you're absolutely right, you're missing nothing here. I made a horrible mistake in my post, thanks for correcting it.
by Iyassou
Tue Jul 12, 2016 5:06 pm
Forum: MicroPython pyboard
Topic: Converting a byte_array to signed int
Replies: 2
Views: 3623

Re: Converting a byte_array to signed int

Sorry for the late reply, Internet was down. Thanks that did the job perfectly!