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".
@micropython.viper in frozen module
Re: @micropython.viper in frozen module
No, you cannot. mpy-cross can only generate bytecode, not machine code.