mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +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
@@ -1,3 +1,9 @@
|
||||
<Timer>
|
||||
True
|
||||
True
|
||||
AdvancedTimer()
|
||||
AdvancedTimer() # created 0 seconds ago
|
||||
0
|
||||
123
|
||||
True
|
||||
TypeError
|
||||
|
||||
Reference in New Issue
Block a user