mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
20 lines
229 B
Python
20 lines
229 B
Python
import time
|
|
|
|
@micropython.asm_thumb
|
|
def asm():
|
|
movw(r0, 42)
|
|
|
|
@micropython.viper
|
|
def viper(a, b):
|
|
return a + b
|
|
|
|
@micropython.native
|
|
def native(a, b):
|
|
return a + b
|
|
|
|
|
|
print(asm())
|
|
print(viper(1, 2))
|
|
print(native(1, 2))
|
|
|