Nice try, Paul, but no banana It works with the current build - but that isn't really relevant. With this recent build:pfalcon wrote:... to achieve compatibility with older and newer versions you just need to wrap ticks_diff() in abs():
Code: Select all
MicroPython v1.8.1-505-g67d52d8 on 2016-09-26; PYBLITEv1.0 with STM32F411RE
Type "help()" for more information.
>>>
>>> import utime
>>> utime.ticks_diff(2,1)
1073741823
>>>