Source code for pyupm_lcm1602

# 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_lcm1602', [dirname(__file__)])
        except ImportError:
            import _pyupm_lcm1602
            return _pyupm_lcm1602
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_lcm1602', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_lcm1602 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lcm1602
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_lcm1602.getVersion()
getVersion = _pyupm_lcm1602.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_lcm1602.delete_SwigPyIterator __del__ = lambda self: None
[docs] def value(self): return _pyupm_lcm1602.SwigPyIterator_value(self)
[docs] def incr(self, n=1): return _pyupm_lcm1602.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1): return _pyupm_lcm1602.SwigPyIterator_decr(self, n)
[docs] def distance(self, x): return _pyupm_lcm1602.SwigPyIterator_distance(self, x)
[docs] def equal(self, x): return _pyupm_lcm1602.SwigPyIterator_equal(self, x)
[docs] def copy(self): return _pyupm_lcm1602.SwigPyIterator_copy(self)
[docs] def next(self): return _pyupm_lcm1602.SwigPyIterator_next(self)
def __next__(self): return _pyupm_lcm1602.SwigPyIterator___next__(self)
[docs] def previous(self): return _pyupm_lcm1602.SwigPyIterator_previous(self)
[docs] def advance(self, n): return _pyupm_lcm1602.SwigPyIterator_advance(self, n)
def __eq__(self, x): return _pyupm_lcm1602.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _pyupm_lcm1602.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _pyupm_lcm1602.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _pyupm_lcm1602.SwigPyIterator___isub__(self, n) def __add__(self, n): return _pyupm_lcm1602.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _pyupm_lcm1602.SwigPyIterator___sub__(self, *args) def __iter__(self): return self
SwigPyIterator_swigregister = _pyupm_lcm1602.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_lcm1602.intVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcm1602.intVector___nonzero__(self) def __bool__(self): return _pyupm_lcm1602.intVector___bool__(self) def __len__(self): return _pyupm_lcm1602.intVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcm1602.intVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcm1602.intVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcm1602.intVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcm1602.intVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcm1602.intVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcm1602.intVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcm1602.intVector_pop(self)
[docs] def append(self, x): return _pyupm_lcm1602.intVector_append(self, x)
[docs] def empty(self): return _pyupm_lcm1602.intVector_empty(self)
[docs] def size(self): return _pyupm_lcm1602.intVector_size(self)
[docs] def swap(self, v): return _pyupm_lcm1602.intVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcm1602.intVector_begin(self)
[docs] def end(self): return _pyupm_lcm1602.intVector_end(self)
[docs] def rbegin(self): return _pyupm_lcm1602.intVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcm1602.intVector_rend(self)
[docs] def clear(self): return _pyupm_lcm1602.intVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcm1602.intVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcm1602.intVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcm1602.intVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcm1602.new_intVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcm1602.intVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcm1602.intVector_front(self)
[docs] def back(self): return _pyupm_lcm1602.intVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcm1602.intVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcm1602.intVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcm1602.intVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcm1602.intVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcm1602.intVector_capacity(self)
__swig_destroy__ = _pyupm_lcm1602.delete_intVector __del__ = lambda self: None
intVector_swigregister = _pyupm_lcm1602.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_lcm1602.int16Vector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcm1602.int16Vector___nonzero__(self) def __bool__(self): return _pyupm_lcm1602.int16Vector___bool__(self) def __len__(self): return _pyupm_lcm1602.int16Vector___len__(self) def __getslice__(self, i, j): return _pyupm_lcm1602.int16Vector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcm1602.int16Vector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcm1602.int16Vector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcm1602.int16Vector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcm1602.int16Vector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcm1602.int16Vector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcm1602.int16Vector_pop(self)
[docs] def append(self, x): return _pyupm_lcm1602.int16Vector_append(self, x)
[docs] def empty(self): return _pyupm_lcm1602.int16Vector_empty(self)
[docs] def size(self): return _pyupm_lcm1602.int16Vector_size(self)
[docs] def swap(self, v): return _pyupm_lcm1602.int16Vector_swap(self, v)
[docs] def begin(self): return _pyupm_lcm1602.int16Vector_begin(self)
[docs] def end(self): return _pyupm_lcm1602.int16Vector_end(self)
[docs] def rbegin(self): return _pyupm_lcm1602.int16Vector_rbegin(self)
[docs] def rend(self): return _pyupm_lcm1602.int16Vector_rend(self)
[docs] def clear(self): return _pyupm_lcm1602.int16Vector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcm1602.int16Vector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcm1602.int16Vector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcm1602.int16Vector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcm1602.new_int16Vector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcm1602.int16Vector_push_back(self, x)
[docs] def front(self): return _pyupm_lcm1602.int16Vector_front(self)
[docs] def back(self): return _pyupm_lcm1602.int16Vector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcm1602.int16Vector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcm1602.int16Vector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcm1602.int16Vector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcm1602.int16Vector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcm1602.int16Vector_capacity(self)
__swig_destroy__ = _pyupm_lcm1602.delete_int16Vector __del__ = lambda self: None
int16Vector_swigregister = _pyupm_lcm1602.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_lcm1602.floatVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcm1602.floatVector___nonzero__(self) def __bool__(self): return _pyupm_lcm1602.floatVector___bool__(self) def __len__(self): return _pyupm_lcm1602.floatVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcm1602.floatVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcm1602.floatVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcm1602.floatVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcm1602.floatVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcm1602.floatVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcm1602.floatVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcm1602.floatVector_pop(self)
[docs] def append(self, x): return _pyupm_lcm1602.floatVector_append(self, x)
[docs] def empty(self): return _pyupm_lcm1602.floatVector_empty(self)
[docs] def size(self): return _pyupm_lcm1602.floatVector_size(self)
[docs] def swap(self, v): return _pyupm_lcm1602.floatVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcm1602.floatVector_begin(self)
[docs] def end(self): return _pyupm_lcm1602.floatVector_end(self)
[docs] def rbegin(self): return _pyupm_lcm1602.floatVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcm1602.floatVector_rend(self)
[docs] def clear(self): return _pyupm_lcm1602.floatVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcm1602.floatVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcm1602.floatVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcm1602.floatVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcm1602.new_floatVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcm1602.floatVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcm1602.floatVector_front(self)
[docs] def back(self): return _pyupm_lcm1602.floatVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcm1602.floatVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcm1602.floatVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcm1602.floatVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcm1602.floatVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcm1602.floatVector_capacity(self)
__swig_destroy__ = _pyupm_lcm1602.delete_floatVector __del__ = lambda self: None
floatVector_swigregister = _pyupm_lcm1602.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_lcm1602.doubleVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcm1602.doubleVector___nonzero__(self) def __bool__(self): return _pyupm_lcm1602.doubleVector___bool__(self) def __len__(self): return _pyupm_lcm1602.doubleVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcm1602.doubleVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcm1602.doubleVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcm1602.doubleVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcm1602.doubleVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcm1602.doubleVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcm1602.doubleVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcm1602.doubleVector_pop(self)
[docs] def append(self, x): return _pyupm_lcm1602.doubleVector_append(self, x)
[docs] def empty(self): return _pyupm_lcm1602.doubleVector_empty(self)
[docs] def size(self): return _pyupm_lcm1602.doubleVector_size(self)
[docs] def swap(self, v): return _pyupm_lcm1602.doubleVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcm1602.doubleVector_begin(self)
[docs] def end(self): return _pyupm_lcm1602.doubleVector_end(self)
[docs] def rbegin(self): return _pyupm_lcm1602.doubleVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcm1602.doubleVector_rend(self)
[docs] def clear(self): return _pyupm_lcm1602.doubleVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcm1602.doubleVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcm1602.doubleVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcm1602.doubleVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcm1602.new_doubleVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcm1602.doubleVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcm1602.doubleVector_front(self)
[docs] def back(self): return _pyupm_lcm1602.doubleVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcm1602.doubleVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcm1602.doubleVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcm1602.doubleVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcm1602.doubleVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcm1602.doubleVector_capacity(self)
__swig_destroy__ = _pyupm_lcm1602.delete_doubleVector __del__ = lambda self: None
doubleVector_swigregister = _pyupm_lcm1602.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_lcm1602.byteVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcm1602.byteVector___nonzero__(self) def __bool__(self): return _pyupm_lcm1602.byteVector___bool__(self) def __len__(self): return _pyupm_lcm1602.byteVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcm1602.byteVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcm1602.byteVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcm1602.byteVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcm1602.byteVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcm1602.byteVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcm1602.byteVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcm1602.byteVector_pop(self)
[docs] def append(self, x): return _pyupm_lcm1602.byteVector_append(self, x)
[docs] def empty(self): return _pyupm_lcm1602.byteVector_empty(self)
[docs] def size(self): return _pyupm_lcm1602.byteVector_size(self)
[docs] def swap(self, v): return _pyupm_lcm1602.byteVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcm1602.byteVector_begin(self)
[docs] def end(self): return _pyupm_lcm1602.byteVector_end(self)
[docs] def rbegin(self): return _pyupm_lcm1602.byteVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcm1602.byteVector_rend(self)
[docs] def clear(self): return _pyupm_lcm1602.byteVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcm1602.byteVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcm1602.byteVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcm1602.byteVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcm1602.new_byteVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcm1602.byteVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcm1602.byteVector_front(self)
[docs] def back(self): return _pyupm_lcm1602.byteVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcm1602.byteVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcm1602.byteVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcm1602.byteVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcm1602.byteVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcm1602.byteVector_capacity(self)
__swig_destroy__ = _pyupm_lcm1602.delete_byteVector __del__ = lambda self: None
byteVector_swigregister = _pyupm_lcm1602.byteVector_swigregister byteVector_swigregister(byteVector)
[docs]class Lcm1602(_object): """ API for the LCM1602 I2C controller for HD44780-based displays. ID: lcm1602 Name: LCD Display Driver for the LCM1602 Controller for HD44780-based Displays Category: display Manufacturer: adafruit sparkfun seeed Link:https://www.adafruit.com/datasheets/TC1602A-01T.pdf Connection: i2c gpio This supports all sizes of HD44780 displays, from 16x2 to 4x20. The controller has no idea of the actual display hardware, so it lets you write farther than you can see. These displays with such controllers are available from various manufacturers with different I2C addresses. Adafruit* TC1602A-01T seems to be a well-documented example. The driver also supports parallel GPIO connections directly to the HD44780 in case you are not using an I2C expander/backpack. Example for LCM1602 displays that use the I2C busCode sample for GPIO based LCM1602 displays C++ includes: lcm1602.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Lcm1602, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Lcm1602, name) __repr__ = _swig_repr def __init__(self, *args): """ Lcm1602(int rs, int enable, int d0, int d1, int d2, int d3, uint8_t numColumns=16, uint8_t numRows=2) Lcm1602 alternate constructor, used for GPIO based HD44780 controllers supporting RS, Enable, and 4 data pins in 4-bit mode. Parameters: ----------- rs: Register select pin enable: Enable pin d0: Data 0 pin d1: Data 1 pin d2: Data 2 pin d3: Data 3 pin numColumns: Number of columns the display has. Default 16. numRows: Number of rows the display has. Default 2. """ this = _pyupm_lcm1602.new_Lcm1602(*args) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_lcm1602.delete_Lcm1602 __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_lcm1602.Lcm1602_write(self, msg)
[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_lcm1602.Lcm1602_setCursor(self, row, column)
[docs] def clear(self): """ upm_result_t clear() Clears the display of all characters Result of the operation """ return _pyupm_lcm1602.Lcm1602_clear(self)
[docs] def home(self): """ upm_result_t home() Returns to the original coordinates (0,0) Result of the operation """ return _pyupm_lcm1602.Lcm1602_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_lcm1602.Lcm1602_createChar(self, charSlot, charData)
[docs] def displayOn(self): """ upm_result_t displayOn() Turn the display on Result of operation """ return _pyupm_lcm1602.Lcm1602_displayOn(self)
[docs] def displayOff(self): """ upm_result_t displayOff() Turn the display off Result of operation """ return _pyupm_lcm1602.Lcm1602_displayOff(self)
[docs] def cursorOn(self): """ upm_result_t cursorOn() Turn the cursor on Result of operation """ return _pyupm_lcm1602.Lcm1602_cursorOn(self)
[docs] def cursorOff(self): """ upm_result_t cursorOff() Turn the cursor off Result of operation """ return _pyupm_lcm1602.Lcm1602_cursorOff(self)
[docs] def cursorBlinkOn(self): """ upm_result_t cursorBlinkOn() Turn cursor blink on Result of operation """ return _pyupm_lcm1602.Lcm1602_cursorBlinkOn(self)
[docs] def cursorBlinkOff(self): """ upm_result_t cursorBlinkOff() Turn cursor blink off Result of operation """ return _pyupm_lcm1602.Lcm1602_cursorBlinkOff(self)
[docs] def backlightOn(self): """ upm_result_t backlightOn() Turn backlight on Result of operation """ return _pyupm_lcm1602.Lcm1602_backlightOn(self)
[docs] def backlightOff(self): """ upm_result_t backlightOff() Turn backlight off Result of operation """ return _pyupm_lcm1602.Lcm1602_backlightOff(self)
[docs] def scrollDisplayLeft(self): """ upm_result_t scrollDisplayLeft() Scroll the display left, without changing the character RAM Result of operation """ return _pyupm_lcm1602.Lcm1602_scrollDisplayLeft(self)
[docs] def scrollDisplayRight(self): """ upm_result_t scrollDisplayRight() Scroll the display right, without changing the character RAM Result of operation """ return _pyupm_lcm1602.Lcm1602_scrollDisplayRight(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_lcm1602.Lcm1602_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_lcm1602.Lcm1602_entryRightToLeft(self)
[docs] def autoscrollOn(self): """ upm_result_t autoscrollOn() Right justify text entered from the cursor Result of operation """ return _pyupm_lcm1602.Lcm1602_autoscrollOn(self)
[docs] def autoscrollOff(self): """ upm_result_t autoscrollOff() Left justify text entered from the cursor Result of operation """ return _pyupm_lcm1602.Lcm1602_autoscrollOff(self)
Lcm1602_swigregister = _pyupm_lcm1602.Lcm1602_swigregister Lcm1602_swigregister(Lcm1602) # This file is compatible with both classic and new-style classes.