Search found 168 matches
- Tue Jan 15, 2019 9:08 am
- Forum: Programs, Libraries and Tools
- Topic: fast font rendering on graphical displays
- Replies: 9
- Views: 10291
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...
- Mon Jan 14, 2019 8:58 pm
- Forum: Programs, Libraries and Tools
- Topic: fast font rendering on graphical displays
- Replies: 9
- Views: 10291
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...
- Fri Nov 30, 2018 7:18 am
- Forum: Development of MicroPython
- Topic: including math functions in module
- Replies: 8
- Views: 5132
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...
- Thu Nov 29, 2018 9:30 pm
- Forum: Development of MicroPython
- Topic: including math functions in module
- Replies: 8
- Views: 5132
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...
- Thu Nov 29, 2018 6:59 am
- Forum: Development of MicroPython
- Topic: including math functions in module
- Replies: 8
- Views: 5132
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...
- Wed Nov 28, 2018 9:45 pm
- Forum: Development of MicroPython
- Topic: including math functions in module
- Replies: 8
- Views: 5132
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.
- Wed Nov 28, 2018 8:57 pm
- Forum: Development of MicroPython
- Topic: including math functions in module
- Replies: 8
- Views: 5132
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 ...
- Wed May 23, 2018 9:10 am
- Forum: Development of MicroPython
- Topic: compiling on ubuntu 18.04
- Replies: 3
- Views: 3108
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...
- Tue May 22, 2018 6:44 pm
- Forum: Development of MicroPython
- Topic: compiling on ubuntu 18.04
- Replies: 3
- Views: 3108
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...
- Sun May 13, 2018 5:36 pm
- Forum: General Discussion and Questions
- Topic: accessing REPL via pyserial
- Replies: 13
- Views: 10040
Re: accessing REPL via pyserial
OK, then it is probably a question of what is "invoking" the REPL in the first place. pyboard does not, but any serial terminal does. I see that this issue is probably not related to the board as such, but to the software on the computer.