Source code for pyupm_lcdks

# 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_lcdks', [dirname(__file__)])
        except ImportError:
            import _pyupm_lcdks
            return _pyupm_lcdks
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_lcdks', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_lcdks = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lcdks
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_lcdks.getVersion()
getVersion = _pyupm_lcdks.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_lcdks.delete_SwigPyIterator __del__ = lambda self: None
[docs] def value(self): return _pyupm_lcdks.SwigPyIterator_value(self)
[docs] def incr(self, n=1): return _pyupm_lcdks.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1): return _pyupm_lcdks.SwigPyIterator_decr(self, n)
[docs] def distance(self, x): return _pyupm_lcdks.SwigPyIterator_distance(self, x)
[docs] def equal(self, x): return _pyupm_lcdks.SwigPyIterator_equal(self, x)
[docs] def copy(self): return _pyupm_lcdks.SwigPyIterator_copy(self)
[docs] def next(self): return _pyupm_lcdks.SwigPyIterator_next(self)
def __next__(self): return _pyupm_lcdks.SwigPyIterator___next__(self)
[docs] def previous(self): return _pyupm_lcdks.SwigPyIterator_previous(self)
[docs] def advance(self, n): return _pyupm_lcdks.SwigPyIterator_advance(self, n)
def __eq__(self, x): return _pyupm_lcdks.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _pyupm_lcdks.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _pyupm_lcdks.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _pyupm_lcdks.SwigPyIterator___isub__(self, n) def __add__(self, n): return _pyupm_lcdks.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _pyupm_lcdks.SwigPyIterator___sub__(self, *args) def __iter__(self): return self
SwigPyIterator_swigregister = _pyupm_lcdks.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_lcdks.intVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcdks.intVector___nonzero__(self) def __bool__(self): return _pyupm_lcdks.intVector___bool__(self) def __len__(self): return _pyupm_lcdks.intVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcdks.intVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcdks.intVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcdks.intVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcdks.intVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcdks.intVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcdks.intVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcdks.intVector_pop(self)
[docs] def append(self, x): return _pyupm_lcdks.intVector_append(self, x)
[docs] def empty(self): return _pyupm_lcdks.intVector_empty(self)
[docs] def size(self): return _pyupm_lcdks.intVector_size(self)
[docs] def swap(self, v): return _pyupm_lcdks.intVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcdks.intVector_begin(self)
[docs] def end(self): return _pyupm_lcdks.intVector_end(self)
[docs] def rbegin(self): return _pyupm_lcdks.intVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcdks.intVector_rend(self)
[docs] def clear(self): return _pyupm_lcdks.intVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcdks.intVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcdks.intVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcdks.intVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcdks.new_intVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcdks.intVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcdks.intVector_front(self)
[docs] def back(self): return _pyupm_lcdks.intVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcdks.intVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcdks.intVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcdks.intVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcdks.intVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcdks.intVector_capacity(self)
__swig_destroy__ = _pyupm_lcdks.delete_intVector __del__ = lambda self: None
intVector_swigregister = _pyupm_lcdks.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_lcdks.int16Vector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcdks.int16Vector___nonzero__(self) def __bool__(self): return _pyupm_lcdks.int16Vector___bool__(self) def __len__(self): return _pyupm_lcdks.int16Vector___len__(self) def __getslice__(self, i, j): return _pyupm_lcdks.int16Vector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcdks.int16Vector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcdks.int16Vector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcdks.int16Vector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcdks.int16Vector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcdks.int16Vector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcdks.int16Vector_pop(self)
[docs] def append(self, x): return _pyupm_lcdks.int16Vector_append(self, x)
[docs] def empty(self): return _pyupm_lcdks.int16Vector_empty(self)
[docs] def size(self): return _pyupm_lcdks.int16Vector_size(self)
[docs] def swap(self, v): return _pyupm_lcdks.int16Vector_swap(self, v)
[docs] def begin(self): return _pyupm_lcdks.int16Vector_begin(self)
[docs] def end(self): return _pyupm_lcdks.int16Vector_end(self)
[docs] def rbegin(self): return _pyupm_lcdks.int16Vector_rbegin(self)
[docs] def rend(self): return _pyupm_lcdks.int16Vector_rend(self)
[docs] def clear(self): return _pyupm_lcdks.int16Vector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcdks.int16Vector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcdks.int16Vector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcdks.int16Vector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcdks.new_int16Vector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcdks.int16Vector_push_back(self, x)
[docs] def front(self): return _pyupm_lcdks.int16Vector_front(self)
[docs] def back(self): return _pyupm_lcdks.int16Vector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcdks.int16Vector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcdks.int16Vector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcdks.int16Vector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcdks.int16Vector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcdks.int16Vector_capacity(self)
__swig_destroy__ = _pyupm_lcdks.delete_int16Vector __del__ = lambda self: None
int16Vector_swigregister = _pyupm_lcdks.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_lcdks.floatVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcdks.floatVector___nonzero__(self) def __bool__(self): return _pyupm_lcdks.floatVector___bool__(self) def __len__(self): return _pyupm_lcdks.floatVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcdks.floatVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcdks.floatVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcdks.floatVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcdks.floatVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcdks.floatVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcdks.floatVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcdks.floatVector_pop(self)
[docs] def append(self, x): return _pyupm_lcdks.floatVector_append(self, x)
[docs] def empty(self): return _pyupm_lcdks.floatVector_empty(self)
[docs] def size(self): return _pyupm_lcdks.floatVector_size(self)
[docs] def swap(self, v): return _pyupm_lcdks.floatVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcdks.floatVector_begin(self)
[docs] def end(self): return _pyupm_lcdks.floatVector_end(self)
[docs] def rbegin(self): return _pyupm_lcdks.floatVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcdks.floatVector_rend(self)
[docs] def clear(self): return _pyupm_lcdks.floatVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcdks.floatVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcdks.floatVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcdks.floatVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcdks.new_floatVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcdks.floatVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcdks.floatVector_front(self)
[docs] def back(self): return _pyupm_lcdks.floatVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcdks.floatVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcdks.floatVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcdks.floatVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcdks.floatVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcdks.floatVector_capacity(self)
__swig_destroy__ = _pyupm_lcdks.delete_floatVector __del__ = lambda self: None
floatVector_swigregister = _pyupm_lcdks.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_lcdks.doubleVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcdks.doubleVector___nonzero__(self) def __bool__(self): return _pyupm_lcdks.doubleVector___bool__(self) def __len__(self): return _pyupm_lcdks.doubleVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcdks.doubleVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcdks.doubleVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcdks.doubleVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcdks.doubleVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcdks.doubleVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcdks.doubleVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcdks.doubleVector_pop(self)
[docs] def append(self, x): return _pyupm_lcdks.doubleVector_append(self, x)
[docs] def empty(self): return _pyupm_lcdks.doubleVector_empty(self)
[docs] def size(self): return _pyupm_lcdks.doubleVector_size(self)
[docs] def swap(self, v): return _pyupm_lcdks.doubleVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcdks.doubleVector_begin(self)
[docs] def end(self): return _pyupm_lcdks.doubleVector_end(self)
[docs] def rbegin(self): return _pyupm_lcdks.doubleVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcdks.doubleVector_rend(self)
[docs] def clear(self): return _pyupm_lcdks.doubleVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcdks.doubleVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcdks.doubleVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcdks.doubleVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcdks.new_doubleVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcdks.doubleVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcdks.doubleVector_front(self)
[docs] def back(self): return _pyupm_lcdks.doubleVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcdks.doubleVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcdks.doubleVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcdks.doubleVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcdks.doubleVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcdks.doubleVector_capacity(self)
__swig_destroy__ = _pyupm_lcdks.delete_doubleVector __del__ = lambda self: None
doubleVector_swigregister = _pyupm_lcdks.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_lcdks.byteVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lcdks.byteVector___nonzero__(self) def __bool__(self): return _pyupm_lcdks.byteVector___bool__(self) def __len__(self): return _pyupm_lcdks.byteVector___len__(self) def __getslice__(self, i, j): return _pyupm_lcdks.byteVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lcdks.byteVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lcdks.byteVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lcdks.byteVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lcdks.byteVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lcdks.byteVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lcdks.byteVector_pop(self)
[docs] def append(self, x): return _pyupm_lcdks.byteVector_append(self, x)
[docs] def empty(self): return _pyupm_lcdks.byteVector_empty(self)
[docs] def size(self): return _pyupm_lcdks.byteVector_size(self)
[docs] def swap(self, v): return _pyupm_lcdks.byteVector_swap(self, v)
[docs] def begin(self): return _pyupm_lcdks.byteVector_begin(self)
[docs] def end(self): return _pyupm_lcdks.byteVector_end(self)
[docs] def rbegin(self): return _pyupm_lcdks.byteVector_rbegin(self)
[docs] def rend(self): return _pyupm_lcdks.byteVector_rend(self)
[docs] def clear(self): return _pyupm_lcdks.byteVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lcdks.byteVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lcdks.byteVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lcdks.byteVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lcdks.new_byteVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lcdks.byteVector_push_back(self, x)
[docs] def front(self): return _pyupm_lcdks.byteVector_front(self)
[docs] def back(self): return _pyupm_lcdks.byteVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lcdks.byteVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lcdks.byteVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lcdks.byteVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lcdks.byteVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lcdks.byteVector_capacity(self)
__swig_destroy__ = _pyupm_lcdks.delete_byteVector __del__ = lambda self: None
byteVector_swigregister = _pyupm_lcdks.byteVector_swigregister byteVector_swigregister(byteVector)
[docs]class LCDKS(_object): """ API for the generic LCD Keypad Shield. ID: lcdks Name: LCD Keypad Shield Category: display Manufacturer: sainsmart dfrobot sparkfun Link:http://www.sainsmart.com/sainsmart-1602-lcd-keypad-shield-for- arduino- duemilanove-uno-mega2560-mega1280.html Link:http://www.dfrobot.com/index.php?route=product/product&product_id=51 Link:https://www.sparkfun.com/products/13293 Connection: gpio analog The LCD Keypad Shield uses 7 digital outputs and 1 analog input (for the keypad). The outputs are used to drive an attached LCM1602 LCD controller. This driver should be compatible with the similar LCD keypad shields from Sainsmart, DFRobot and Sparkfun. C++ includes: lcdks.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, LCDKS, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, LCDKS, name) __repr__ = _swig_repr def __init__(self, rs=8, enable=9, d0=4, d1=5, d2=6, d3=7, keypad=0, backlight=-1): """ LCDKS(int rs=8, int enable=9, int d0=4, int d1=5, int d2=6, int d3=7, int keypad=0, int backlight=-1) LCDKS constructor As this is a shield, you will not likely have any choice over the pins that are used. For this reason, we provide defaults for all of them of course they can be changed if your device is different. Parameters: ----------- rs: Register select pin. enable: Enable pin. d0: Data 0 pin. d1: Data 1 pin. d2: Data 2 pin. d3: Data 3 pin. keypad: Analog pin of the keypad. backlight: Optional GPIO backlight pin. Specify -1 if not in use or not supported on your device. Exceptions: ----------- std::runtime_error: on initialization error. """ this = _pyupm_lcdks.new_LCDKS(rs, enable, d0, d1, d2, d3, keypad, backlight) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_lcdks.delete_LCDKS __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_lcdks.LCDKS_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_lcdks.LCDKS_setCursor(self, row, column)
[docs] def clear(self): """ upm_result_t clear() Clears the display of all characters Result of the operation """ return _pyupm_lcdks.LCDKS_clear(self)
[docs] def home(self): """ upm_result_t home() Returns to the original coordinates (0,0) Result of the operation """ return _pyupm_lcdks.LCDKS_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_lcdks.LCDKS_createChar(self, charSlot, charData)
[docs] def displayOn(self): """ upm_result_t displayOn() Turn the display on Result of operation """ return _pyupm_lcdks.LCDKS_displayOn(self)
[docs] def displayOff(self): """ upm_result_t displayOff() Turn the display off Result of operation """ return _pyupm_lcdks.LCDKS_displayOff(self)
[docs] def cursorOn(self): """ upm_result_t cursorOn() Turn the cursor on Result of operation """ return _pyupm_lcdks.LCDKS_cursorOn(self)
[docs] def cursorOff(self): """ upm_result_t cursorOff() Turn the cursor off Result of operation """ return _pyupm_lcdks.LCDKS_cursorOff(self)
[docs] def cursorBlinkOn(self): """ upm_result_t cursorBlinkOn() Turn cursor blink on Result of operation """ return _pyupm_lcdks.LCDKS_cursorBlinkOn(self)
[docs] def cursorBlinkOff(self): """ upm_result_t cursorBlinkOff() Turn cursor blink off Result of operation """ return _pyupm_lcdks.LCDKS_cursorBlinkOff(self)
[docs] def backlightOn(self): """ upm_result_t backlightOn() Turn backlight on Result of operation """ return _pyupm_lcdks.LCDKS_backlightOn(self)
[docs] def backlightOff(self): """ upm_result_t backlightOff() Turn backlight off Result of operation """ return _pyupm_lcdks.LCDKS_backlightOff(self)
[docs] def scrollDisplayLeft(self): """ upm_result_t scrollDisplayLeft() Scroll the display left, without changing the character RAM Result of operation """ return _pyupm_lcdks.LCDKS_scrollDisplayLeft(self)
[docs] def scrollDisplayRight(self): """ upm_result_t scrollDisplayRight() Scroll the display right, without changing the character RAM Result of operation """ return _pyupm_lcdks.LCDKS_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_lcdks.LCDKS_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_lcdks.LCDKS_entryRightToLeft(self)
[docs] def autoscrollOn(self): """ upm_result_t autoscrollOn() Right justify text entered from the cursor Result of operation """ return _pyupm_lcdks.LCDKS_autoscrollOn(self)
[docs] def autoscrollOff(self): """ upm_result_t autoscrollOff() Left justify text entered from the cursor Result of operation """ return _pyupm_lcdks.LCDKS_autoscrollOff(self)
[docs] def getKeyValue(self): """ float getKeyValue() Returns the floating point representation of the key that is being pushed. Each key produces a different value between 0.0 and 1.0, and only one key can be read at a time. The floating point value representing a key. """ return _pyupm_lcdks.LCDKS_getKeyValue(self)
[docs] def getRawKeyValue(self): """ float getRawKeyValue() Returns the floating point representation of the key that is being pushed. Each key produces a different value between 0.0 and 1.0, and only one key can be read at a time. Deprecated This function is deprecated. Use getKeyValue() instead. The floating point value representing a key. """ return _pyupm_lcdks.LCDKS_getRawKeyValue(self)
LCDKS_swigregister = _pyupm_lcdks.LCDKS_swigregister LCDKS_swigregister(LCDKS) # This file is compatible with both classic and new-style classes.