Page 1 of 1

@micropython.viper in frozen module

Posted: Sat Jun 03, 2017 9:20 am
by rosenrot
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".

Re: @micropython.viper in frozen module

Posted: Sat Jun 03, 2017 1:31 pm
by Roberthh
No, you cannot. mpy-cross can only generate bytecode, not machine code.