Skip to content

Commit 5712695

Browse files
committed
Fix Steinhart-hart and rage function Python bindings. Move to 1.0.2
1 parent 1eb877c commit 5712695

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
libwidgetlords (1.0.2) unstable; urgency=medium
2+
3+
* Update to 1.0.2
4+
5+
-- Kelsey Maes <kelsey@vpprocess.com> Thu, 29 Mar 2018 13:13:42 -0700
6+
17
libwidgetlords (1.0.1) unstable; urgency=medium
28

39
* Update to 1.0.1

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ lib = library('widgetlords',
3434
dependencies: [m_dep, wiringpi],
3535
install: true,
3636
include_directories: include,
37-
version: '1.0.1')
37+
version: '1.0.2')
3838

3939
install_headers('include/pi_spi.h', 'include/pi_spi_din.h', 'include/widgetlords.h', subdir: 'widgetlords')
4040

@@ -43,7 +43,7 @@ install_data('libwidgetlords.vapi', install_dir: 'share/vala/vapi')
4343
dep = declare_dependency(include_directories: include, link_with: lib)
4444

4545
pkg.generate(libraries: [lib],
46-
version: '1.0.1',
46+
version: '1.0.2',
4747
name: 'libwidgetlords',
4848
description: 'libwidgetlords',
4949
subdirs: ['widgetlords'])

python/widgetlords/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
widgetlords = cdll.LoadLibrary('libwidgetlords.so')
66

7+
widgetlords.widgetlords_steinhart_hart.argtypes = [c_double, c_double, c_ushort, c_ushort]
8+
widgetlords.widgetlords_steinhart_hart.restype = c_double
9+
10+
widgetlords.widgetlords_counts_to_value.argtypes = [c_ushort, c_ushort, c_ushort, c_double, c_double]
11+
widgetlords.widgetlords_counts_to_value.restype = c_double
12+
713
def steinhart_hart(r_room: float, r_beta: float, counts_range: int, counts: int):
814
return widgetlords.widgetlords_steinhart_hart(r_room, r_beta, counts_range, counts)
915
__all__.append('steinhart_hart')

0 commit comments

Comments
 (0)