summaryrefslogtreecommitdiff
path: root/tests/misc/cexample_module.py
diff options
context:
space:
mode:
authorLaurens Valk <laurens@pybricks.com>2022-12-05 16:51:20 +0100
committerDamien George <damien@micropython.org>2024-07-25 11:57:13 +1000
commit19b1333cb1376ef60376a07e8e76a41854014840 (patch)
tree71527e14bca10b0be10e2e52c655baa35f39dfe5 /tests/misc/cexample_module.py
parent7fe8f030eea0015962e729eae1f1c309dc83a469 (diff)
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>
Diffstat (limited to 'tests/misc/cexample_module.py')
-rw-r--r--tests/misc/cexample_module.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/cexample_module.py b/tests/misc/cexample_module.py
index c1da2ecf7..979c1fa24 100644
--- a/tests/misc/cexample_module.py
+++ b/tests/misc/cexample_module.py
@@ -12,5 +12,6 @@ print(cexample.__name__)
d = dir(cexample)
d.index("add_ints")
d.index("Timer")
+d.index("AdvancedTimer")
print(cexample.add_ints(1, 3))