mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
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>
This commit is contained in:
committed by
Damien George
parent
7fe8f030ee
commit
19b1333cb1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user