This website requires JavaScript.
Explore
Help
Register
Sign In
fengqi
/
lv_micropython
Watch
1
Star
0
Fork
0
You've already forked lv_micropython
Code
Issues
Pull Requests
1
Actions
Packages
Projects
Releases
Wiki
Activity
lv_micropython
/
tests
/
misc
/
cexample_class.py.exp
10 lines
96 B
Plaintext
Raw
Normal View
History
Unescape
Escape
examples/usercmodule: Add example of a native C class. This shows how ports can add their own custom types/classes. It is part of the unix coverage build, so we can use it for tests too. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-21 14:10:02 +01:00
<Timer>
True
tests/misc/cexample_class: Fix timing sensitivity. This test could occasionally fail because some operations take longer than expected. This relaxes the timing constraints and defers printing until the very end. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-24 08:58:10 +01:00
True
examples/usercmodule/cexample: Add more advanced native class. This adds a separate `AdvancedTimer` class that demonstrates a few more advanced concepts usch as custom handlers for printing and attributes. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-12-05 16:51:20 +01:00
AdvancedTimer()
AdvancedTimer() # created 0 seconds ago
0
123
True
TypeError
Reference in New Issue
Copy Permalink