# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_pyupm_jhd1313m1', [dirname(__file__)])
except ImportError:
import _pyupm_jhd1313m1
return _pyupm_jhd1313m1
if fp is not None:
try:
_mod = imp.load_module('_pyupm_jhd1313m1', fp, pathname, description)
finally:
fp.close()
return _mod
_pyupm_jhd1313m1 = swig_import_helper()
del swig_import_helper
else:
import _pyupm_jhd1313m1
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
def getVersion():
return _pyupm_jhd1313m1.getVersion()
getVersion = _pyupm_jhd1313m1.getVersion
[docs]class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _pyupm_jhd1313m1.delete_SwigPyIterator
__del__ = lambda self: None
[docs] def value(self):
return _pyupm_jhd1313m1.SwigPyIterator_value(self)
[docs] def incr(self, n=1):
return _pyupm_jhd1313m1.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1):
return _pyupm_jhd1313m1.SwigPyIterator_decr(self, n)
[docs] def distance(self, x):
return _pyupm_jhd1313m1.SwigPyIterator_distance(self, x)
[docs] def equal(self, x):
return _pyupm_jhd1313m1.SwigPyIterator_equal(self, x)
[docs] def copy(self):
return _pyupm_jhd1313m1.SwigPyIterator_copy(self)
[docs] def next(self):
return _pyupm_jhd1313m1.SwigPyIterator_next(self)
def __next__(self):
return _pyupm_jhd1313m1.SwigPyIterator___next__(self)
[docs] def previous(self):
return _pyupm_jhd1313m1.SwigPyIterator_previous(self)
[docs] def advance(self, n):
return _pyupm_jhd1313m1.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _pyupm_jhd1313m1.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _pyupm_jhd1313m1.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _pyupm_jhd1313m1.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _pyupm_jhd1313m1.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _pyupm_jhd1313m1.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _pyupm_jhd1313m1.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _pyupm_jhd1313m1.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
[docs]class intVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, intVector, name)
__repr__ = _swig_repr
[docs] def iterator(self):
return _pyupm_jhd1313m1.intVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _pyupm_jhd1313m1.intVector___nonzero__(self)
def __bool__(self):
return _pyupm_jhd1313m1.intVector___bool__(self)
def __len__(self):
return _pyupm_jhd1313m1.intVector___len__(self)
def __getslice__(self, i, j):
return _pyupm_jhd1313m1.intVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _pyupm_jhd1313m1.intVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _pyupm_jhd1313m1.intVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _pyupm_jhd1313m1.intVector___delitem__(self, *args)
def __getitem__(self, *args):
return _pyupm_jhd1313m1.intVector___getitem__(self, *args)
def __setitem__(self, *args):
return _pyupm_jhd1313m1.intVector___setitem__(self, *args)
[docs] def pop(self):
return _pyupm_jhd1313m1.intVector_pop(self)
[docs] def append(self, x):
return _pyupm_jhd1313m1.intVector_append(self, x)
[docs] def empty(self):
return _pyupm_jhd1313m1.intVector_empty(self)
[docs] def size(self):
return _pyupm_jhd1313m1.intVector_size(self)
[docs] def swap(self, v):
return _pyupm_jhd1313m1.intVector_swap(self, v)
[docs] def begin(self):
return _pyupm_jhd1313m1.intVector_begin(self)
[docs] def end(self):
return _pyupm_jhd1313m1.intVector_end(self)
[docs] def rbegin(self):
return _pyupm_jhd1313m1.intVector_rbegin(self)
[docs] def rend(self):
return _pyupm_jhd1313m1.intVector_rend(self)
[docs] def clear(self):
return _pyupm_jhd1313m1.intVector_clear(self)
[docs] def get_allocator(self):
return _pyupm_jhd1313m1.intVector_get_allocator(self)
[docs] def pop_back(self):
return _pyupm_jhd1313m1.intVector_pop_back(self)
[docs] def erase(self, *args):
return _pyupm_jhd1313m1.intVector_erase(self, *args)
def __init__(self, *args):
this = _pyupm_jhd1313m1.new_intVector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
[docs] def push_back(self, x):
return _pyupm_jhd1313m1.intVector_push_back(self, x)
[docs] def front(self):
return _pyupm_jhd1313m1.intVector_front(self)
[docs] def back(self):
return _pyupm_jhd1313m1.intVector_back(self)
[docs] def assign(self, n, x):
return _pyupm_jhd1313m1.intVector_assign(self, n, x)
[docs] def resize(self, *args):
return _pyupm_jhd1313m1.intVector_resize(self, *args)
[docs] def insert(self, *args):
return _pyupm_jhd1313m1.intVector_insert(self, *args)
[docs] def reserve(self, n):
return _pyupm_jhd1313m1.intVector_reserve(self, n)
[docs] def capacity(self):
return _pyupm_jhd1313m1.intVector_capacity(self)
__swig_destroy__ = _pyupm_jhd1313m1.delete_intVector
__del__ = lambda self: None
intVector_swigregister = _pyupm_jhd1313m1.intVector_swigregister
intVector_swigregister(intVector)
[docs]class int16Vector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, int16Vector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, int16Vector, name)
__repr__ = _swig_repr
[docs] def iterator(self):
return _pyupm_jhd1313m1.int16Vector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _pyupm_jhd1313m1.int16Vector___nonzero__(self)
def __bool__(self):
return _pyupm_jhd1313m1.int16Vector___bool__(self)
def __len__(self):
return _pyupm_jhd1313m1.int16Vector___len__(self)
def __getslice__(self, i, j):
return _pyupm_jhd1313m1.int16Vector___getslice__(self, i, j)
def __setslice__(self, *args):
return _pyupm_jhd1313m1.int16Vector___setslice__(self, *args)
def __delslice__(self, i, j):
return _pyupm_jhd1313m1.int16Vector___delslice__(self, i, j)
def __delitem__(self, *args):
return _pyupm_jhd1313m1.int16Vector___delitem__(self, *args)
def __getitem__(self, *args):
return _pyupm_jhd1313m1.int16Vector___getitem__(self, *args)
def __setitem__(self, *args):
return _pyupm_jhd1313m1.int16Vector___setitem__(self, *args)
[docs] def pop(self):
return _pyupm_jhd1313m1.int16Vector_pop(self)
[docs] def append(self, x):
return _pyupm_jhd1313m1.int16Vector_append(self, x)
[docs] def empty(self):
return _pyupm_jhd1313m1.int16Vector_empty(self)
[docs] def size(self):
return _pyupm_jhd1313m1.int16Vector_size(self)
[docs] def swap(self, v):
return _pyupm_jhd1313m1.int16Vector_swap(self, v)
[docs] def begin(self):
return _pyupm_jhd1313m1.int16Vector_begin(self)
[docs] def end(self):
return _pyupm_jhd1313m1.int16Vector_end(self)
[docs] def rbegin(self):
return _pyupm_jhd1313m1.int16Vector_rbegin(self)
[docs] def rend(self):
return _pyupm_jhd1313m1.int16Vector_rend(self)
[docs] def clear(self):
return _pyupm_jhd1313m1.int16Vector_clear(self)
[docs] def get_allocator(self):
return _pyupm_jhd1313m1.int16Vector_get_allocator(self)
[docs] def pop_back(self):
return _pyupm_jhd1313m1.int16Vector_pop_back(self)
[docs] def erase(self, *args):
return _pyupm_jhd1313m1.int16Vector_erase(self, *args)
def __init__(self, *args):
this = _pyupm_jhd1313m1.new_int16Vector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
[docs] def push_back(self, x):
return _pyupm_jhd1313m1.int16Vector_push_back(self, x)
[docs] def front(self):
return _pyupm_jhd1313m1.int16Vector_front(self)
[docs] def back(self):
return _pyupm_jhd1313m1.int16Vector_back(self)
[docs] def assign(self, n, x):
return _pyupm_jhd1313m1.int16Vector_assign(self, n, x)
[docs] def resize(self, *args):
return _pyupm_jhd1313m1.int16Vector_resize(self, *args)
[docs] def insert(self, *args):
return _pyupm_jhd1313m1.int16Vector_insert(self, *args)
[docs] def reserve(self, n):
return _pyupm_jhd1313m1.int16Vector_reserve(self, n)
[docs] def capacity(self):
return _pyupm_jhd1313m1.int16Vector_capacity(self)
__swig_destroy__ = _pyupm_jhd1313m1.delete_int16Vector
__del__ = lambda self: None
int16Vector_swigregister = _pyupm_jhd1313m1.int16Vector_swigregister
int16Vector_swigregister(int16Vector)
[docs]class floatVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, floatVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, floatVector, name)
__repr__ = _swig_repr
[docs] def iterator(self):
return _pyupm_jhd1313m1.floatVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _pyupm_jhd1313m1.floatVector___nonzero__(self)
def __bool__(self):
return _pyupm_jhd1313m1.floatVector___bool__(self)
def __len__(self):
return _pyupm_jhd1313m1.floatVector___len__(self)
def __getslice__(self, i, j):
return _pyupm_jhd1313m1.floatVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _pyupm_jhd1313m1.floatVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _pyupm_jhd1313m1.floatVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _pyupm_jhd1313m1.floatVector___delitem__(self, *args)
def __getitem__(self, *args):
return _pyupm_jhd1313m1.floatVector___getitem__(self, *args)
def __setitem__(self, *args):
return _pyupm_jhd1313m1.floatVector___setitem__(self, *args)
[docs] def pop(self):
return _pyupm_jhd1313m1.floatVector_pop(self)
[docs] def append(self, x):
return _pyupm_jhd1313m1.floatVector_append(self, x)
[docs] def empty(self):
return _pyupm_jhd1313m1.floatVector_empty(self)
[docs] def size(self):
return _pyupm_jhd1313m1.floatVector_size(self)
[docs] def swap(self, v):
return _pyupm_jhd1313m1.floatVector_swap(self, v)
[docs] def begin(self):
return _pyupm_jhd1313m1.floatVector_begin(self)
[docs] def end(self):
return _pyupm_jhd1313m1.floatVector_end(self)
[docs] def rbegin(self):
return _pyupm_jhd1313m1.floatVector_rbegin(self)
[docs] def rend(self):
return _pyupm_jhd1313m1.floatVector_rend(self)
[docs] def clear(self):
return _pyupm_jhd1313m1.floatVector_clear(self)
[docs] def get_allocator(self):
return _pyupm_jhd1313m1.floatVector_get_allocator(self)
[docs] def pop_back(self):
return _pyupm_jhd1313m1.floatVector_pop_back(self)
[docs] def erase(self, *args):
return _pyupm_jhd1313m1.floatVector_erase(self, *args)
def __init__(self, *args):
this = _pyupm_jhd1313m1.new_floatVector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
[docs] def push_back(self, x):
return _pyupm_jhd1313m1.floatVector_push_back(self, x)
[docs] def front(self):
return _pyupm_jhd1313m1.floatVector_front(self)
[docs] def back(self):
return _pyupm_jhd1313m1.floatVector_back(self)
[docs] def assign(self, n, x):
return _pyupm_jhd1313m1.floatVector_assign(self, n, x)
[docs] def resize(self, *args):
return _pyupm_jhd1313m1.floatVector_resize(self, *args)
[docs] def insert(self, *args):
return _pyupm_jhd1313m1.floatVector_insert(self, *args)
[docs] def reserve(self, n):
return _pyupm_jhd1313m1.floatVector_reserve(self, n)
[docs] def capacity(self):
return _pyupm_jhd1313m1.floatVector_capacity(self)
__swig_destroy__ = _pyupm_jhd1313m1.delete_floatVector
__del__ = lambda self: None
floatVector_swigregister = _pyupm_jhd1313m1.floatVector_swigregister
floatVector_swigregister(floatVector)
[docs]class doubleVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, doubleVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, doubleVector, name)
__repr__ = _swig_repr
[docs] def iterator(self):
return _pyupm_jhd1313m1.doubleVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _pyupm_jhd1313m1.doubleVector___nonzero__(self)
def __bool__(self):
return _pyupm_jhd1313m1.doubleVector___bool__(self)
def __len__(self):
return _pyupm_jhd1313m1.doubleVector___len__(self)
def __getslice__(self, i, j):
return _pyupm_jhd1313m1.doubleVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _pyupm_jhd1313m1.doubleVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _pyupm_jhd1313m1.doubleVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _pyupm_jhd1313m1.doubleVector___delitem__(self, *args)
def __getitem__(self, *args):
return _pyupm_jhd1313m1.doubleVector___getitem__(self, *args)
def __setitem__(self, *args):
return _pyupm_jhd1313m1.doubleVector___setitem__(self, *args)
[docs] def pop(self):
return _pyupm_jhd1313m1.doubleVector_pop(self)
[docs] def append(self, x):
return _pyupm_jhd1313m1.doubleVector_append(self, x)
[docs] def empty(self):
return _pyupm_jhd1313m1.doubleVector_empty(self)
[docs] def size(self):
return _pyupm_jhd1313m1.doubleVector_size(self)
[docs] def swap(self, v):
return _pyupm_jhd1313m1.doubleVector_swap(self, v)
[docs] def begin(self):
return _pyupm_jhd1313m1.doubleVector_begin(self)
[docs] def end(self):
return _pyupm_jhd1313m1.doubleVector_end(self)
[docs] def rbegin(self):
return _pyupm_jhd1313m1.doubleVector_rbegin(self)
[docs] def rend(self):
return _pyupm_jhd1313m1.doubleVector_rend(self)
[docs] def clear(self):
return _pyupm_jhd1313m1.doubleVector_clear(self)
[docs] def get_allocator(self):
return _pyupm_jhd1313m1.doubleVector_get_allocator(self)
[docs] def pop_back(self):
return _pyupm_jhd1313m1.doubleVector_pop_back(self)
[docs] def erase(self, *args):
return _pyupm_jhd1313m1.doubleVector_erase(self, *args)
def __init__(self, *args):
this = _pyupm_jhd1313m1.new_doubleVector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
[docs] def push_back(self, x):
return _pyupm_jhd1313m1.doubleVector_push_back(self, x)
[docs] def front(self):
return _pyupm_jhd1313m1.doubleVector_front(self)
[docs] def back(self):
return _pyupm_jhd1313m1.doubleVector_back(self)
[docs] def assign(self, n, x):
return _pyupm_jhd1313m1.doubleVector_assign(self, n, x)
[docs] def resize(self, *args):
return _pyupm_jhd1313m1.doubleVector_resize(self, *args)
[docs] def insert(self, *args):
return _pyupm_jhd1313m1.doubleVector_insert(self, *args)
[docs] def reserve(self, n):
return _pyupm_jhd1313m1.doubleVector_reserve(self, n)
[docs] def capacity(self):
return _pyupm_jhd1313m1.doubleVector_capacity(self)
__swig_destroy__ = _pyupm_jhd1313m1.delete_doubleVector
__del__ = lambda self: None
doubleVector_swigregister = _pyupm_jhd1313m1.doubleVector_swigregister
doubleVector_swigregister(doubleVector)
[docs]class byteVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, byteVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, byteVector, name)
__repr__ = _swig_repr
[docs] def iterator(self):
return _pyupm_jhd1313m1.byteVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _pyupm_jhd1313m1.byteVector___nonzero__(self)
def __bool__(self):
return _pyupm_jhd1313m1.byteVector___bool__(self)
def __len__(self):
return _pyupm_jhd1313m1.byteVector___len__(self)
def __getslice__(self, i, j):
return _pyupm_jhd1313m1.byteVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _pyupm_jhd1313m1.byteVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _pyupm_jhd1313m1.byteVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _pyupm_jhd1313m1.byteVector___delitem__(self, *args)
def __getitem__(self, *args):
return _pyupm_jhd1313m1.byteVector___getitem__(self, *args)
def __setitem__(self, *args):
return _pyupm_jhd1313m1.byteVector___setitem__(self, *args)
[docs] def pop(self):
return _pyupm_jhd1313m1.byteVector_pop(self)
[docs] def append(self, x):
return _pyupm_jhd1313m1.byteVector_append(self, x)
[docs] def empty(self):
return _pyupm_jhd1313m1.byteVector_empty(self)
[docs] def size(self):
return _pyupm_jhd1313m1.byteVector_size(self)
[docs] def swap(self, v):
return _pyupm_jhd1313m1.byteVector_swap(self, v)
[docs] def begin(self):
return _pyupm_jhd1313m1.byteVector_begin(self)
[docs] def end(self):
return _pyupm_jhd1313m1.byteVector_end(self)
[docs] def rbegin(self):
return _pyupm_jhd1313m1.byteVector_rbegin(self)
[docs] def rend(self):
return _pyupm_jhd1313m1.byteVector_rend(self)
[docs] def clear(self):
return _pyupm_jhd1313m1.byteVector_clear(self)
[docs] def get_allocator(self):
return _pyupm_jhd1313m1.byteVector_get_allocator(self)
[docs] def pop_back(self):
return _pyupm_jhd1313m1.byteVector_pop_back(self)
[docs] def erase(self, *args):
return _pyupm_jhd1313m1.byteVector_erase(self, *args)
def __init__(self, *args):
this = _pyupm_jhd1313m1.new_byteVector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
[docs] def push_back(self, x):
return _pyupm_jhd1313m1.byteVector_push_back(self, x)
[docs] def front(self):
return _pyupm_jhd1313m1.byteVector_front(self)
[docs] def back(self):
return _pyupm_jhd1313m1.byteVector_back(self)
[docs] def assign(self, n, x):
return _pyupm_jhd1313m1.byteVector_assign(self, n, x)
[docs] def resize(self, *args):
return _pyupm_jhd1313m1.byteVector_resize(self, *args)
[docs] def insert(self, *args):
return _pyupm_jhd1313m1.byteVector_insert(self, *args)
[docs] def reserve(self, n):
return _pyupm_jhd1313m1.byteVector_reserve(self, n)
[docs] def capacity(self):
return _pyupm_jhd1313m1.byteVector_capacity(self)
__swig_destroy__ = _pyupm_jhd1313m1.delete_byteVector
__del__ = lambda self: None
byteVector_swigregister = _pyupm_jhd1313m1.byteVector_swigregister
byteVector_swigregister(byteVector)
[docs]class Jhd1313m1(_object):
"""
API for the JHD1313M1 I2C controller for HD44780-based displays with
an RGB backlight, such as a Grove RGB I2C LCD display.
ID: jhd1313m1
Name: LCD Display Driver for the JHD1313M1 Controller for
HD44780-based Displays
Other Names: Grove RGB LCD
Category: display
Manufacturer: seeed adafruit sparkfun
Link:http://www.seeedstudio.com/depot/Grove-LCD-RGB-
Backlight-p-1643.html?cPath=34_36
Connection: i2c
Kit: gsk JHD1313M1 has two I2C addreses: one belongs to a controller,
very similar to the upm::Lcm1602 LCD driver, that controls the
HD44780-based display, and the other controls only the backlight. This
module was tested with the Seeed Grove LCD RGB Backlight v2.0 display
that requires 5V to operate.
C++ includes: jhd1313m1.hpp
"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Jhd1313m1, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Jhd1313m1, name)
__repr__ = _swig_repr
def __init__(self, bus, lcdAddress=0x3E, rgbAddress=0x62):
"""
Jhd1313m1(int bus,
int lcdAddress=0x3E, int rgbAddress=0x62)
Jhd1313m1 constructor
Parameters:
-----------
bus: I2C bus to use
lcdAddress: Slave address the LCD is registered on
rgbAddress: Slave address the RGB backlight is registered on
"""
this = _pyupm_jhd1313m1.new_Jhd1313m1(bus, lcdAddress, rgbAddress)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _pyupm_jhd1313m1.delete_Jhd1313m1
__del__ = lambda self: None
[docs] def write(self, msg):
"""
upm_result_t
write(std::string msg)
Writes a string to the LCD
Parameters:
-----------
msg: std::string to write to the display; note: only ASCII characters
are supported
Result of the operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_write(self, msg)
[docs] def setColor(self, r, g, b):
"""
upm_result_t
setColor(uint8_t r, uint8_t g, uint8_t b)
Sets the color of the backlight Can be used to change the color even
when the backlight is off
Parameters:
-----------
r: 0-255 value for red
g: 0-255 value for green
b: 0-255 value for blue
Result of the operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_setColor(self, r, g, b)
[docs] def setCursor(self, row, column):
"""
upm_result_t
setCursor(int row, int column)
Sets the cursor to specified coordinates
Parameters:
-----------
row: Row to set the cursor to
column: Column to set the cursor to
Result of the operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_setCursor(self, row, column)
[docs] def clear(self):
"""
upm_result_t clear()
Clears the display of all characters
Result of the operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_clear(self)
[docs] def home(self):
"""
upm_result_t home()
Returns to the original coordinates (0,0)
Result of the operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_home(self)
[docs] def createChar(self, charSlot, charData):
"""
upm_result_t
createChar(uint8_t charSlot, std::vector< uint8_t > charData)
Create a custom character
Parameters:
-----------
charSlot: the character slot to write, only 8 are available
charData: A vector containing 8 bytes making up the character
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_createChar(self, charSlot, charData)
[docs] def displayOn(self):
"""
upm_result_t
displayOn()
Turn the display on
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_displayOn(self)
[docs] def displayOff(self):
"""
upm_result_t
displayOff()
Turn the display off
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_displayOff(self)
[docs] def cursorOn(self):
"""
upm_result_t
cursorOn()
Turn the cursor on
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_cursorOn(self)
[docs] def cursorOff(self):
"""
upm_result_t
cursorOff()
Turn the cursor off
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_cursorOff(self)
[docs] def cursorBlinkOn(self):
"""
upm_result_t
cursorBlinkOn()
Turn cursor blink on
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_cursorBlinkOn(self)
[docs] def cursorBlinkOff(self):
"""
upm_result_t
cursorBlinkOff()
Turn cursor blink off
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_cursorBlinkOff(self)
[docs] def backlightOn(self):
"""
upm_result_t
backlightOn()
Turn backlight on
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_backlightOn(self)
[docs] def backlightOff(self):
"""
upm_result_t
backlightOff()
Turn backlight off
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_backlightOff(self)
[docs] def entryLeftToRight(self):
"""
upm_result_t
entryLeftToRight()
set the entry mode so that characters are added left to right
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_entryLeftToRight(self)
[docs] def entryRightToLeft(self):
"""
upm_result_t
entryRightToLeft()
set the entry mode so that characters are added right to left
Result of operation
"""
return _pyupm_jhd1313m1.Jhd1313m1_entryRightToLeft(self)
Jhd1313m1_swigregister = _pyupm_jhd1313m1.Jhd1313m1_swigregister
Jhd1313m1_swigregister(Jhd1313m1)
# This file is compatible with both classic and new-style classes.