# -*- python-mode -*- ## Copyright (C) 2012-2013 Daniel Pavel ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License along ## with this program; if not, write to the Free Software Foundation, Inc., ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """Low-level interface for devices connected through a Logitech Universal Receiver (UR). Uses the HID api exposed through hidapi.py, a Python thin layer over a native implementation. Incomplete. Based on a bit of documentation, trial-and-error, and guesswork. References: http://julien.danjou.info/blog/2012/logitech-k750-linux-support http://6xq.net/git/lars/lshidpp.git/plain/doc/ """ from __future__ import absolute_import, division, print_function, unicode_literals import logging from . import listener, status # noqa: F401 from .base import DeviceUnreachable, NoReceiver, NoSuchDevice # noqa: F401 from .common import strhex # noqa: F401 from .device import Device # noqa: F401 from .hidpp20 import FeatureCallError, FeatureNotSupported # noqa: F401 from .receiver import Receiver # noqa: F401 _DEBUG = logging.DEBUG _log = logging.getLogger(__name__) _log.setLevel(logging.root.level) # if logging.root.level > logging.DEBUG: # _log.addHandler(logging.NullHandler()) # _log.propagate = 0 del logging __version__ = '0.9'