Thanks, jimmo.
Does anyone know how much speedup I can expect when using viper and native emitters w.r.t. pure Python for integer and string
operations?
PP
Search found 35 matches
- Tue Jun 04, 2019 1:19 pm
- Forum: Other Boards
- Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
- Replies: 6
- Views: 3579
- Tue Jun 04, 2019 4:48 am
- Forum: Other Boards
- Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
- Replies: 6
- Views: 3579
BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Hi, This is for the BLACK_F407VE STM32F407VET6 board with MicroPython 1.11 (source at top of the tree). I have used the @micropython.native decorator on the class methods that I have put in the ports/stm32/modules/ directory. On trying a clean build, I encounter this error: GEN build-BLACK_F407VE/fr...
- Wed May 22, 2019 2:49 am
- Forum: General Discussion and Questions
- Topic: Cannot overload float()
- Replies: 2
- Views: 1719
Cannot overload float()
Hi, I am redefining int() and float() for my number-like class (simplified floatoverload class below), but I get a TypeError when trying to use float(). I am returning a floating point number from __float__ ( ). int( ) works fine. Any pointers on what might would be much appreciated. I am using: Mic...
- Fri May 03, 2019 3:38 pm
- Forum: General Discussion and Questions
- Topic: mpmath MemoryError on Windows port
- Replies: 3
- Views: 2341
- Fri May 03, 2019 1:52 pm
- Forum: General Discussion and Questions
- Topic: mpmath MemoryError on Windows port
- Replies: 3
- Views: 2341
mpmath MemoryError on Windows port
Hi, I am trying to port the mpmath package to MicroPython; the target will be Rasp-Pi-2, but I am now developing on using the Windows port. I got a little further than the OP in this post: https://forum.micropython.org/viewtopic.php?t=3621 but have now hit a roadblock with this error: D:/RPi/python>...
- Wed May 01, 2019 5:55 am
- Forum: General Discussion and Questions
- Topic: ImportError with Frozen Modules
- Replies: 2
- Views: 1868
Re: ImportError with Frozen Modules
Perfect. Your sys.path explanation makes sense, because that's how "Mega" Python works
too, but I would have expected the /null/ path to be appended to sys.path by default in
MicroPython.
Thanks very much!
too, but I would have expected the /null/ path to be appended to sys.path by default in
MicroPython.
Thanks very much!
- Tue Apr 30, 2019 3:16 pm
- Forum: General Discussion and Questions
- Topic: ImportError with Frozen Modules
- Replies: 2
- Views: 1868
ImportError with Frozen Modules
Hi, I am trying to freeze an MP module as described here: https://docs.micropython.org/en/latest/reference/constrained.html?highlight=frozen When I load the module from the MP prompt, the module is loaded correctly, but when I try to execute a file main.py that imports the frozen module, I see: # ./...
- Fri Apr 26, 2019 2:23 pm
- Forum: Other Boards
- Topic: The 'machine' module on Raspberry Pi
- Replies: 6
- Views: 12090
Re: The 'machine' module on Raspberry Pi
There's a low level RPi C library at http://www.airspayce.com/mikem/bcm2835/index.html I could not find anything like the Python RPi.GPIO modules so I am trying to get a MicroPython wrapper working on top of this: https://github.com/hacksterous/micropython/tree/master/ports/unix/mpbcm2835 I have tes...
- Tue Apr 23, 2019 3:37 pm
- Forum: Other Boards
- Topic: The 'machine' module on Raspberry Pi
- Replies: 6
- Views: 12090
The 'machine' module on Raspberry Pi
Hi,
Does anyone know how to build the 'machine' module on a Raspberry Pi running Raspbian or Buildroot?
I know boochow has a bare metal version with SPI and I2C, but I need MicroPython to run inside Buildroot.
Thanks
Does anyone know how to build the 'machine' module on a Raspberry Pi running Raspbian or Buildroot?
I know boochow has a bare metal version with SPI and I2C, but I need MicroPython to run inside Buildroot.
Thanks
- Mon Apr 15, 2019 3:12 am
- Forum: ESP8266 boards
- Topic: Bignum limitations on ESP8266 boards
- Replies: 3
- Views: 2320
Re: Bignum limitations on ESP8266 boards
Thanks.
Is there a MicroPython way to catch the exception (OSError in this case?)?
I would much like a more graceful exit than a soft reset.
Is there a MicroPython way to catch the exception (OSError in this case?)?
I would much like a more graceful exit than a soft reset.