Search found 37 matches

by Iyassou
Tue Feb 13, 2018 8:24 am
Forum: General Discussion and Questions
Topic: MicroPython round() Function
Replies: 20
Views: 8233

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: 8233

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: 1314

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: 1314

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: 13569

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: 13569

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: 7749

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: 8233

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: 3091

Re: Converting a byte_array to signed int

Sorry for the late reply, Internet was down. Thanks that did the job perfectly!
by Iyassou
Sun Jul 10, 2016 9:26 am
Forum: MicroPython pyboard
Topic: Converting a byte_array to signed int
Replies: 2
Views: 3091

Converting a byte_array to signed int

Hello, I'm reading a 16-bit value from two consecutive registers on a sensor and I've put them into one variable by typing data = bytearray(i2c.mem_read(2, addr, mem_addr)) and I want to turn this into a signed integer. The order in which I'm reading the values defines data's endianness as little. S...