mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 10:51:12 +03:00
ds2413: Initial implementation
This adds initial support for the DS2413 Dual Channel Addressable Switch. This is a Dallas Semiconductor 1-wire compliant device providing access to 2 open-drain GPIOs. https://learn.adafruit.com/adafruit-1-wire-gpio-breakout-ds2413/overview This driver requires One-Wire over UART support in MRAA (PR #415) which is not yet merged. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
12
src/ds2413/pyupm_ds2413.i
Normal file
12
src/ds2413/pyupm_ds2413.i
Normal file
@ -0,0 +1,12 @@
|
||||
%module pyupm_ds2413
|
||||
%include "../upm.i"
|
||||
%include "carrays.i"
|
||||
%include "std_string.i"
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%{
|
||||
#include "ds2413.h"
|
||||
%}
|
||||
%include "ds2413.h"
|
||||
%array_class(char, charArray);
|
Reference in New Issue
Block a user