Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
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

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
Powered by Gitea Version: 1.23.8 Page: 59ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API