[Microbit-Python] Slowness as integers move beyond 256
M.-A. Lemburg
mal at egenix.com
Wed Jan 6 09:04:01 EST 2016
I've fixed the logic for calculating the argument for math.sin()
to always be in the range of 0..2*pi. This makes the slowness
go away.
BTW: I tried to film the waves display, but found that the LEDs
appear to be using pulse-width modulation (PWM) to output different
brightness levels. As a result the film doesn't show the nice modulation,
but instead a more or less erratic blinking.
Cheers,
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Experts (#1, Jan 06 2016)
>>> Python Projects, Coaching and Consulting ... http://www.egenix.com/
>>> Python Database Interfaces ... http://products.egenix.com/
>>> Plone/Zope Database Interfaces ... http://zope.egenix.com/
________________________________________________________________________
::: We implement business ideas - efficiently in both time and costs :::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
http://www.malemburg.com/
More information about the Microbit
mailing list