wtf main.py and boot.py empty?!

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
NikolaiE
Posts: 10
Joined: Sat Nov 10, 2018 1:23 pm

Re: wtf main.py and boot.py empty?!

Post by NikolaiE » Mon Nov 12, 2018 7:38 pm

I just found out, that you can write inline assembler.

I start to like it.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: wtf main.py and boot.py empty?!

Post by Roberthh » Mon Nov 12, 2018 8:18 pm

You may also look at the viper code emitter. According to my experience, the generated assembler code is about twice as long as assembler code you would write, and takes twice the time, but is still way faster than bytecode, and you can use symbolic variables and the control structures of Python, like loops, if's, ... So you can decide to use viper for complex code and assembly for simply code needing the highest speed. I used that approach in my SSD1963 driver in the file TFT_io.py: https://github.com/robert-hh/SSD1963-TF ... or-PyBoard

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: wtf main.py and boot.py empty?!

Post by pythoncoder » Thu Nov 15, 2018 9:17 am

Other examples of inline assembler may be found in these digital filter scripts.
Peter Hinch
Index to my micropython libraries.

Post Reply