[Microbit-Python] Slowness as integers move beyond 256

Dave Hylands dhylands at gmail.com
Wed Jan 6 13:24:23 EST 2016


Hi,

On Wed, Jan 6, 2016 at 6:04 AM, M.-A. Lemburg <mal at egenix.com> wrote:

> 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.
>

I think that if you could increase the PWM frequency then you'd be able to
film it. But that may or may not be possible (I'm not familiar with the
underlying HW).

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160106/96e7f727/attachment.html>


More information about the Microbit mailing list