First pass with syscalls in the AST

This commit is contained in:
2024-12-01 22:18:09 -07:00
parent bce9a55721
commit 8132241eb3
6 changed files with 202 additions and 28 deletions

View File

@@ -6,9 +6,9 @@ loop {
let currentTemperature = loadFromDevice(roomTemperatureSensor, "Temperature");
if (currentTemperature > 25c) {
setOnDevice(airConditioner, "On", true);
setOnDevice(airConditioner, "Mode", "On");
} else if (currentTemperature <= 20c) {
setOnDevice(airConditioner, "On", false);
setOnDevice(airConditioner, "Mode", "Off");
};
};