Search found 69 matches

by v923z
Tue Jan 15, 2019 9:18 am
Forum: Programs, Libraries and Tools
Topic: fast font rendering on graphical displays
Replies: 9
Views: 995

Re: fast font rendering on graphical displays

One thing I have clean forgotten to mention: for an extra factor of approx. 4 in render time, one can implement aliasing, without any overhead on the RAM. (The transfer times will not be affected.) I don't know, whether this is relevant/interesting or not.
by v923z
Tue Jan 15, 2019 9:08 am
Forum: Programs, Libraries and Tools
Topic: fast font rendering on graphical displays
Replies: 9
Views: 995

Re: fast font rendering on graphical displays

Hi Scott, Thanks for dropping by. Here are a couple of comments. Hi Matt and Zoltán, I'm curious about your use cases for text and in what way speed matters. Is it initial time to display a static value or rapidly changing values like a terminal while compiling? This issue is not so much about the s...
by v923z
Mon Jan 14, 2019 8:58 pm
Forum: Programs, Libraries and Tools
Topic: fast font rendering on graphical displays
Replies: 9
Views: 995

fast font rendering on graphical displays

Hi all, I would like to refer to two postings on this board, related to efficiently using graphical displays, and in particular, rendering fonts. One of them is quite old, in which @pythoncoder was circulating his idea of storing fonts in the flash https://forum.micropython.org/viewtopic.php?f=3&t=2...
by v923z
Fri Nov 30, 2018 7:18 am
Forum: Development of MicroPython
Topic: including math functions in module
Replies: 8
Views: 619

Re: including math functions in module

The general tendency is to make things STATIC unless they need to be shared. From a maintenance standpoint a function that is declared STATIC can be changed arbitrarily and you only need to look within the same source file to find all of the "users" of that function. If a function is made public, t...
by v923z
Thu Nov 29, 2018 9:30 pm
Forum: Development of MicroPython
Topic: including math functions in module
Replies: 8
Views: 619

Re: including math functions in module

Well, if you were going to expose the functions at a C level, you would probably factor them out from the existing functions, since the existing functions take mp_obj_t's rather than floats, so you'll wind up doing a bunch of conversions. For such a small function, it's quite possibly cheaper (both...
by v923z
Thu Nov 29, 2018 6:59 am
Forum: Development of MicroPython
Topic: including math functions in module
Replies: 8
Views: 619

Re: including math functions in module

On the pyboard, they're exposed to python in the math module: MicroPython v1.9.4-479-g828f771e3-dirty on 2018-09-12; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> import math >>> math.radians(90) 1.570796 >>> math.degrees(1.570796) 89.99998 >>> Those functions aren't exposed to C...
by v923z
Wed Nov 28, 2018 9:45 pm
Forum: Development of MicroPython
Topic: including math functions in module
Replies: 8
Views: 619

Re: including math functions in module

This is definitely true, thanks! However, there are still degrees and radians that are part of modmath.c, and I don't think they are exposed anywhere.
by v923z
Wed Nov 28, 2018 8:57 pm
Forum: Development of MicroPython
Topic: including math functions in module
Replies: 8
Views: 619

including math functions in module

Hi all, I would like to include a couple of functions from math in my C module. I can compile the module all right, but I get a linker error like so test.c:(.text.test_vec+0x5e): undefined reference to `acos' I have tried to add the file to SRC_LIBM in Makefile, but that didn't help (I got an other ...
by v923z
Wed May 23, 2018 9:10 am
Forum: Development of MicroPython
Topic: compiling on ubuntu 18.04
Replies: 3
Views: 914

Re: compiling on ubuntu 18.04

I went to https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads and downloaded the "Linux 64-bit" tarball. It seems to be working fine under ubuntu 18.04. Indeed. Thanks for the pointer! For reference, here are the steps required: 1. Download the tarball from the address above, and u...
by v923z
Tue May 22, 2018 6:44 pm
Forum: Development of MicroPython
Topic: compiling on ubuntu 18.04
Replies: 3
Views: 914

compiling on ubuntu 18.04

Hi all, I was just wondering, whether there is a workaround for compiling on ubuntu 18.04. According to the guidelines (https://github.com/micropython/micropython/wiki/Getting-Started#debian-ubuntu-mint-and-variants), one would have to add ppa:terry.guo/gcc-arm-embedded, but that ppa hasn't been upd...