Baseline: tree as shared
This commit is contained in:
1679 files changed
+1024562
No files matched your search
@@ -0,0 +1,16 @@
|
||||
struct MotorHandle:
|
||||
var motor_id: Int
|
||||
|
||||
def __init__(out self, motor_id: Int):
|
||||
self.motor_id = motor_id
|
||||
print("Acquired motor", self.motor_id)
|
||||
|
||||
|
||||
def drive():
|
||||
var handle = MotorHandle(0)
|
||||
print("Driving with motor", handle.motor_id)
|
||||
|
||||
|
||||
def main():
|
||||
drive()
|
||||
print("Scheduler idle")
|
||||
Reference in new issue
Block a user