@micropython.viper in frozen module

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
rosenrot
Posts: 30
Joined: Mon Dec 12, 2016 9:39 pm

@micropython.viper in frozen module

Post by rosenrot » Sat Jun 03, 2017 9:20 am

Can't I add a function with a viper decorator to a module which should become frozen?

Placing the function in main.py works. Placing it in the modules folder for building it, gives me "invalid micropython decorator".

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

Re: @micropython.viper in frozen module

Post by Roberthh » Sat Jun 03, 2017 1:31 pm

No, you cannot. mpy-cross can only generate bytecode, not machine code.

Post Reply