Skip to content

Commit a5b377d

Browse files
analog_read should return a float
1 parent 089341b commit a5b377d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

electroblocks/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def digital_read(self, pin):
337337
return self._find_sensor_str(pin, "dr") == "1"
338338

339339
def analog_read(self, pin):
340-
return self._find_sensor_str(pin, "ar")
340+
return float(self._find_sensor_str(pin, "ar"))
341341

342342

343343
# LED MATRIX

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "electroblocks"
7-
version = "0.1.23"
7+
version = "0.1.24"
88
description = "Python client library to interact with ElectroBlocks Arduino firmware"
99
authors = [
1010
{ name = "Noah Glaser", email = "glaserpower@gmail.com" }

0 commit comments

Comments
 (0)