Search found 53 matches

by v923z
Tue Jan 10, 2017 12:42 pm
Forum: General Discussion and Questions
Topic: rotating framebuf
Replies: 8
Views: 2350

Re: rotating framebuf

I understand that the aspect ratio might be a problem, and this is why I mentioned a display upside down. In that case, the text, lines etc. could be re-drawn without having to re-calculate anything.
by v923z
Mon Jan 09, 2017 9:32 pm
Forum: General Discussion and Questions
Topic: rotating framebuf
Replies: 8
Views: 2350

rotating framebuf

Hi all, I was wondering, whether it is possible to rotate the framebuffer. Given that the micropython board has an accelerometer, I think it is only natural to ask, whether the content of a display can automatically be adjusted, if I turn the microcontroller upside down. Transforming the drawing pri...
by v923z
Wed Jan 04, 2017 3:39 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 22
Views: 5732

Re: Suggested standard approach to font handling

Python modules are in many ways similar to classes. Assume font1.py and font2.py use my approach. The following will work: import font1, font2 h1 = font1.height() h2= font2.height() Indeed. I totally overlooked this. :oops: The key technical problem is this. Bitmapped fonts comprise substantial amo...
by v923z
Tue Jan 03, 2017 10:05 pm
Forum: Development of MicroPython
Topic: Build firmware with python drivers.
Replies: 4
Views: 1961

Re: Build firmware with python drivers.

The aim here is to save RAM. If this isn't an issue you can, of course, just copy the driver to the filesystem on your target and execute it from there. There might be other reasons for compiling the code. E.g., if you don't want to make it readable. But this is, perhaps, more like a question: can ...
by v923z
Tue Jan 03, 2017 9:33 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 22
Views: 5732

Re: Suggested standard approach to font handling

I was wondering, how much memory overhead a dictionary adds... That's an interesting technique: I didn't realise convert could do that. How are you dealing with the issue of alignment? I am not sure I see what you mean: if it is the vertical alignment of fonts (i.e., the baseline of characters), th...
by v923z
Mon Jan 02, 2017 6:51 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 22
Views: 5732

Re: Suggested standard approach to font handling

Thanks Dave, this is a useful piece of code.
by v923z
Mon Jan 02, 2017 1:02 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 22
Views: 5732

Re: Suggested standard approach to font handling

I was wondering, how much memory overhead a dictionary adds. Inspired by Peter's font conversion tool (somehow, I couldn't get freetype working under anaconda, so I have to make a trip to a command line tool), I saved the font maps in a dictionary. The details can be found under https://github.com/v...
by v923z
Wed Dec 28, 2016 11:42 pm
Forum: Programs, Libraries and Tools
Topic: First steps for an interactive micropython ... IPython
Replies: 12
Views: 6952

Re: First steps for an interactive micropython ... IPython

I know that this is a rather old thread, and I would be happy to open a new one, if desired. I only wanted to keep this in context. I also wanted to have some sort of interactive development environment for the board, and ended up defining a new cell-level magic for ipython. I outlined the details h...
by v923z
Mon Jan 04, 2016 7:46 pm
Forum: WiPy and CC3200 boards
Topic: Timer example not working
Replies: 32
Views: 16947

Re: Timer example not working

Besides the micropython.org download site for binaries, the whole source code including the versions for WiPy can be found here: https://github.com/micropython/micropython. The WiPy version is the one in folder cc3200. Call me blockhead, but I would have assumed that the wipy-related stuff resides ...
by v923z
Fri Jan 01, 2016 6:29 pm
Forum: WiPy and CC3200 boards
Topic: Timer example not working
Replies: 32
Views: 16947

Re: Timer example not working

pythoncoder wrote:Oh dear - sorry if I've caused you wasted time. :( I must admit my WiPy is sitting on a shelf pending firmware bugfixes.
Don't worry, no harm was done. ;)

Zoltán