Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/i/FishPi-POCV---Command---Control-HEAD/fishpi/sensor/compass/compass_interface.py   FishPi-POCV---Command---Control(Download)
from math import pow as fpow
 
from Adafruit_LSM303 import Adafruit_LSM303
 
 
    def __init__(self, interface="", hw_interface="-1", debug=False,
            hires="False"):
        if debug:
            logging.basicConfig(level=logging.DEBUG)
        self.device_handler = Adafruit_LSM303(busnum=int(hw_interface), debug=debug)

src/f/i/FishPi-POCV---Command---Control-HEAD/fishpi/sensor/compass/lsm303_interface.py   FishPi-POCV---Command---Control(Download)
# THIS IS NOT USED RIGHT NOW. SEE compass_interface.py
 
from Adafruit_LSM303 import Adafruit_LSM303
import logging
 
    def setup(self, interface="-1", debug=False, hires=False):
        if self._setup_complete:
            return
        self.device_handler = Adafruit_LSM303(debug=debug)
        self._setup_complete = True