Unified the C# mod and the Rust compiler into a monorepo
This commit is contained in:
9
rust_compiler/libs/compiler/test_files/deviceIo.slang
Normal file
9
rust_compiler/libs/compiler/test_files/deviceIo.slang
Normal file
@@ -0,0 +1,9 @@
|
||||
device airConditioner = "d0";
|
||||
device gasSensor = "d1";
|
||||
|
||||
loop {
|
||||
yield();
|
||||
let indoorTemp = loadFromDevice(gasSensor, "Temperature");
|
||||
let shouldSet = indoorTemp > 30c;
|
||||
setOnDevice(airConditioner, "On", shouldSet);
|
||||
}
|
||||
Reference in New Issue
Block a user