Skip to content

Commit 1692be0

Browse files
committed
cytation5 temperature controls
1 parent c4a34a9 commit 1692be0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pylabrobot/plate_reading/biotek_backend.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ async def get_current_temperature(self) -> float:
403403
assert resp is not None
404404
return int(resp[1:-1]) / 100000
405405

406+
async def set_temperature(self, temperature: float):
407+
"""Set temperature in degrees Celsius."""
408+
return await self.send_command("g", f"{int(temperature * 1000):05}")
409+
410+
async def stop_heating_or_cooling(self):
411+
return await self.send_command("g", "00000")
412+
406413
def _parse_body(self, body: bytes) -> List[List[float]]:
407414
start_index = body.index(b"01,01")
408415
end_index = body.rindex(b"\r\n")

0 commit comments

Comments
 (0)