Search found 11 matches

by Kenneth
Fri May 16, 2014 8:24 pm
Forum: General Discussion and Questions
Topic: importing own module
Replies: 5
Views: 13188

Re: importing own module

I can live with the requirement to extend the path with '1:/' :). Works great.
by Kenneth
Fri May 16, 2014 6:23 pm
Forum: General Discussion and Questions
Topic: importing own module
Replies: 5
Views: 13188

importing own module

I have created a folder on the sdcard containing an empty __init__.py and another file containing a class. However, I can't 'import <foldername>', nor 'from <foldername>.<filename> import <classname>'. Not from the REPL, not from main.py Traceback (most recent call last): File "1:/main.py", line 2, ...
by Kenneth
Tue May 13, 2014 6:05 am
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24222

Re: Irregular processing power

Moving gc.disable around doesn't prevent the fatal error. But there is no issue recovering from it, just press the reset button, mount the filesystem, revert the changes, unmount and reset again :). I placed pyb.info() in my loop, and I see the GC values change rapidly. I extracted them from my outp...
by Kenneth
Mon May 12, 2014 10:08 pm
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24222

Re: Irregular processing power

Immediately after resetting the board:

Code: Select all

MemoryError: 
FATAL: uncaught exception 805237c

FATAL ERROR:
            
That's the only thing I get when I add following code at the beginning of main.py, using yesterday's dfu.

Code: Select all

import gc
gc.disable()
by Kenneth
Mon May 12, 2014 10:01 pm
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24222

Re: Irregular processing power

Yeah, if it's indeed a memory leak, it will most likely in the display driver. That one of the tricks by running "managed" code in such a strict environment :).

I'll try to debug it and certainly share my findings as soon as I have some.
by Kenneth
Mon May 12, 2014 9:25 pm
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24222

Re: Irregular processing power

Re-reading my post and taking a look at the exact timings may suggest that it's more a matter of garbage filling up or some kind of leak letting the code run slower and slower until garbage is collected and/or memory is freed.
by Kenneth
Mon May 12, 2014 9:20 pm
Forum: General Discussion and Questions
Topic: Irregular processing power
Replies: 21
Views: 24222

Irregular processing power

As a proof of concept, I wrote a quick driver for SSD1306 compatible oled displays. As a sort of hello world, I have a horizontal and vertical line bouncing up/down and left/right, as fast as possible. While the calculations of drawing the lines might be a bit inefficient, I noticed that it seems th...
by Kenneth
Thu May 08, 2014 7:02 pm
Forum: MicroPython pyboard
Topic: COM drivers on win 8.1 x64
Replies: 4
Views: 5649

Re: COM drivers on win 8.1 x64

I'm not too familiar with drivers in windows, but there is a foundation out there that signs open source drivers. I don't know whether the one shipped with micropython is open source.

http://www.reactos.org/wiki/Driver_Signing
by Kenneth
Wed May 07, 2014 7:29 pm
Forum: Development of MicroPython
Topic: Library guidelines
Replies: 3
Views: 4834

Library guidelines

I just wrote a first quick version for a library for SSD1306 oled displays (128x64 and 128x32), tested for 128x32. The file is called ssd1306.py and you can place it next to your main.py. after that, you can use code like: from ssd1306 import SSD1306 display = SSD1306(pinout={'sda': 'Y1', 'sck': 'Y2...
by Kenneth
Wed May 07, 2014 10:53 am
Forum: MicroPython pyboard
Topic: Wifi module
Replies: 12
Views: 17679

Re: Wifi module

I assume Damien will get to this stuff once the kickstarter logistics are completed.

I'm now looking to buy a CC3000 module somewhere, so that when it arrives support might be already included :).