SEEL.SENSORS package

Submodules

SEEL.SENSORS.AD9833 module

SEEL.SENSORS.BH1750 module

class SEEL.SENSORS.BH1750.BRIDGE(I2C, **args)[source]
ADDRESS = 35
NUMPLOTS = 1
PLOTNAMES = ['Lux']
POWER_ON = 1
RESET = 7
RES_1000mLx = 16
RES_4000mLx = 19
RES_500mLx = 17
gain = 0
gain_choices = [17, 16, 19]
gain_literal_choices = ['500mLx', '1000mLx', '4000mLx']
getRaw()[source]
getVals(numbytes)[source]
init(dummy_variable_to_circumvent_framework_limitation)[source]
name = 'Luminosity'
params = {'init': ['Now'], 'setRange': ['500mLx', '1000mLx', '4000mLx']}
scaling = [2, 1, 0.25]
setRange(g)[source]
SEEL.SENSORS.BH1750.connect(route, **args)[source]

SEEL.SENSORS.BMP180 module

class SEEL.SENSORS.BMP180.BMP180(I2C, **args)[source]
ADDRESS = 119
CMD_P0 = 52
CMD_P1 = 116
CMD_P2 = 180
CMD_P3 = 244
CMD_TEMP = 46
NUMPLOTS = 3
PLOTNAMES = ['Temperature', 'Pressure', 'Altitude']
REG_CONTROL = 244
REG_RESULT = 246
altitude()[source]
getRaw()[source]
initPressure()[source]
initTemperature()[source]
name = 'Altimeter BMP180'
oversampling = 0
readPressure()[source]
readTemperature()[source]
sealevel(P, A)[source]

given a calculated pressure and altitude, return the sealevel

setOversampling(num)[source]
SEEL.SENSORS.BMP180.connect(route, **args)[source]

SEEL.SENSORS.ComplementaryFilter module

class SEEL.SENSORS.ComplementaryFilter.ComplementaryFilter[source]
addData(accData, gyrData)[source]
getData()[source]

SEEL.SENSORS.HMC5883L module

class SEEL.SENSORS.HMC5883L.HMC5883L(I2C, **args)[source]
ADDRESS = 30
CONFA = 0
CONFB = 1
MODE = 2
NUMPLOTS = 3
PLOTNAMES = ['Bx', 'By', 'Bz']
STATUS = 9
dataOutputRate = 6
dataOutputRate_choices = [0.75, 1.5, 3, 7.5, 15, 30, 75]
gainValue = 7
gain_choices = [8, 7, 6, 5, 4, 3, 2, 1]
getRaw()[source]
getVals(addr, bytes)[source]
init(dummy_variable_to_circumvent_framework_limitation)[source]
measurementConf = 0
name = 'Magnetometer'
try:
print ‘switching baud to 400k’ self.I2C.configI2C(400e3)
except:
print ‘FAILED TO CHANGE BAUD RATE’
params = {'setDataOutputRate': [0.75, 1.5, 3, 7.5, 15, 30, 75], 'init': ['Now'], 'setSamplesToAverage': [1, 2, 4, 8], 'setGain': [8, 7, 6, 5, 4, 3, 2, 1]}
samplesToAverage = 0
samplesToAverage_choices = [1, 2, 4, 8]
scaling = [1370.0, 1090.0, 820.0, 660.0, 440.0, 390.0, 330.0, 230.0]
setDataOutputRate(rate)[source]
setGain(gain)[source]
setSamplesToAverage(num)[source]
SEEL.SENSORS.HMC5883L.connect(route, **args)[source]

SEEL.SENSORS.Kalman module

class SEEL.SENSORS.Kalman.KalmanFilter(process_variance, estimated_measurement_variance)[source]

Bases: object

Credits:http://scottlobdell.me/2014/08/kalman-filtering-python-reading-sensor-input/

get_latest_estimated_measurement()[source]
input_latest_noisy_measurement(measurement)[source]

SEEL.SENSORS.MF522 module

class SEEL.SENSORS.MF522.MF522(I, cs='CS1')[source]
AnalogTestReg = 112
AutoTestReg = 108
BitFramingReg = 26
CRCResultRegH = 66
CRCResultRegL = 68
CWGsPReg = 80
CalulateCRC(pIndata)[source]
ClearBitMask(reg, mask)[source]
CollReg = 28
ComIEnReg = 4
ComIrqReg = 8
CommandReg = 2
ControlReg = 24
DemodReg = 50
DivIEnReg = 6
DivIrqReg = 10
ErrorReg = 12
FIFODataReg = 18
FIFOLevelReg = 20
GsNReg = 78
MAX_LEN = 16
MFRC522_Anticoll()[source]
MFRC522_Auth(authMode, BlockAddr, Sectorkey, serNum)[source]
MFRC522_DumpClassic1K(key, uid)[source]
MFRC522_Init()[source]
MFRC522_Read(blockAddr)[source]
MFRC522_Request(reqMode)[source]
MFRC522_SelectTag(serNum)[source]
MFRC522_StopCrypto1()[source]
MFRC522_ToCard(command, sendData)[source]
MFRC522_Write(blockAddr, writeData)[source]
MF_ACK = 10
MF_KEY_SIZE = 6
MI_ERR = 2
MI_NOTAGERR = 1
MI_OK = 0
MfRxReg = 58
MfTxReg = 56
ModGsPReg = 82
ModWidthReg = 72
ModeReg = 34
NRSTPD = 22
PCD_CALCCRC = 3
PCD_CalcCRC = 3
PCD_GenerateRandomID = 2
PCD_Idle = 0
PCD_MFAuthent = 14
PCD_Mem = 1
PCD_NoCmdChange = 7
PCD_Receive = 8
PCD_SoftReset = 15
PCD_Transceive = 12
PCD_Transmit = 4
PICC_ANTICOLL = 147
PICC_AUTHENT1A = 96
PICC_AUTHENT1B = 97
PICC_CMD_CT = 136
PICC_CMD_HLTA = 80
PICC_CMD_MF_AUTH_KEY_A = 96
PICC_CMD_MF_AUTH_KEY_B = 97
PICC_CMD_MF_DECREMENT = 192
PICC_CMD_MF_INCREMENT = 193
PICC_CMD_MF_READ = 48
PICC_CMD_MF_RESTORE = 194
PICC_CMD_MF_TRANSFER = 176
PICC_CMD_MF_WRITE = 160
PICC_CMD_REQA = 38
PICC_CMD_SEL_CL1 = 147
PICC_CMD_SEL_CL2 = 149
PICC_CMD_SEL_CL3 = 151
PICC_CMD_UL_WRITE = 162
PICC_CMD_WUPA = 82
PICC_DECREMENT = 192
PICC_HALT = 80
PICC_INCREMENT = 193
PICC_READ = 48
PICC_REQALL = 82
PICC_REQIDL = 38
PICC_RESTORE = 194
PICC_SElECTTAG = 147
PICC_TRANSFER = 176
PICC_WRITE = 160
RFCfgReg = 76
RxGain_18dB = 0
RxGain_18dB_2 = 32
RxGain_23dB = 16
RxGain_23dB_2 = 48
RxGain_33dB = 64
RxGain_38dB = 80
RxGain_43dB = 96
RxGain_48dB = 112
RxGain_avg = 64
RxGain_max = 112
RxGain_min = 0
RxModeReg = 38
RxSelReg = 46
RxThresholdReg = 48
SerialSpeedReg = 62
SetBitMask(reg, mask)[source]
Status1Reg = 14
Status2Reg = 16
TCounterValueRegH = 92
TCounterValueRegL = 94
TModeReg = 84
TPrescalerReg = 86
TReloadRegH = 88
TReloadRegL = 90
TestADCReg = 118
TestBusReg = 106
TestDAC1Reg = 114
TestDAC2Reg = 116
TestPinEnReg = 102
TestPinValueReg = 104
TestSel1Reg = 98
TestSel2Reg = 100
TxASKReg = 42
TxControlReg = 40
TxModeReg = 36
TxSelReg = 44
VersionReg = 110
WaterLevelReg = 22
enableAntenna()[source]
getStatus()[source]
getVersion()[source]
read(register)[source]
readMany(register, total)[source]
reset()[source]
write(register, val)[source]
SEEL.SENSORS.MF522.connect(I, cs)[source]

SEEL.SENSORS.MLX90614 module

class SEEL.SENSORS.MLX90614.MLX90614(I2C, **args)[source]
ADDRESS = 90
NUMPLOTS = 1
PLOTNAMES = ['Temp']
getAmbientTemperature()[source]
getObjectTemperature()[source]
getRaw()[source]
getVals(addr, bytes)[source]
name = 'PIR temperature'
readReg(addr)[source]
select_source(source)[source]
SEEL.SENSORS.MLX90614.connect(route, **args)[source]

SEEL.SENSORS.MPU6050 module

class SEEL.SENSORS.MPU6050.MPU6050(I2C, **args)[source]

Mandatory members: GetRaw : Function called by Graphical apps. Must return values stored in a list NUMPLOTS : length of list returned by GetRaw. Even single datapoints need to be stored in a list before returning PLOTNAMES : a list of strings describing each element in the list returned by GetRaw. len(PLOTNAMES) = NUMPLOTS name : the name of the sensor shown to the user params:

A dictionary of function calls(single arguments only) paired with list of valid argument values. (Primitive. I know.) These calls can be used for one time configuration settings
ACCEL_CONFIG = 28
ACCEL_SCALING = [16384, 8192, 4096, 2048]
ADDRESS = 104
AR = 3
GR = 3
GYRO_CONFIG = 27
GYRO_SCALING = [131, 65.5, 32.8, 16.4]
KalmanFilter(opt)[source]
NUMPLOTS = 7
PLOTNAMES = ['Ax', 'Ay', 'Az', 'Temp', 'Gx', 'Gy', 'Gz']
getAccel()[source]
getGyro()[source]
getRaw()[source]

This method must be defined if you want GUIs to use this class to generate plots on the fly. It must return a set of different values read from the sensor. such as X,Y,Z acceleration. The length of this list must not change, and must be defined in the variable NUMPLOTS.

GUIs will generate as many plots, and the data returned from this method will be appended appropriately

getTemp()[source]
getVals(addr, bytes)[source]
name = 'Accel/gyro'
powerUp(x)[source]
setAccelRange(rs)[source]
setGyroRange(rs)[source]
SEEL.SENSORS.MPU6050.connect(route, **args)[source]

SEEL.SENSORS.SHT21 module

class SEEL.SENSORS.SHT21.SHT21(I2C, **args)[source]
ADDRESS = 64
HUMIDITY_ADDRESS = 245
NUMPLOTS = 1
PLOTNAMES = ['Data']
RESET = 254
TEMP_ADDRESS = 243
getRaw()[source]
init(x)[source]
name = 'Humidity/Temperature'
try:
print (‘switching baud to 400k’) self.I2C.configI2C(400e3)
except:
print (‘FAILED TO CHANGE BAUD RATE’)
rawToRH(vals)[source]
rawToTemp(vals)[source]
selectParameter(param)[source]
selected = 243
SEEL.SENSORS.SHT21.connect(route, **args)[source]

SEEL.SENSORS.SSD1306 module

Adapted into Python from Adafruit’s oled.cpp Original license text:

Software License Agreement (BSD License)

Copyright (c) 2012, Adafruit Industries All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ‘’AS IS’’ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

class SEEL.SENSORS.SSD1306.SSD1306(I2C, **args)[source]
ADDRESS = 60
DISPLAY_TYPE = 3
HEIGHT = 64
NUMPLOTS = 0
PLOTNAMES = ['']
SSD1306_128_32 = 2
SSD1306_128_64 = 1
SSD1306_96_16 = 3
SSD1306_CHARGEPUMP = 141
SSD1306_COMSCANDEC = 200
SSD1306_COMSCANINC = 192
SSD1306_DISPLAYALLON = 165
SSD1306_DISPLAYALLON_RESUME = 164
SSD1306_DISPLAYOFF = 174
SSD1306_DISPLAYON = 175
SSD1306_EXTERNALVCC = 1
SSD1306_INVERTDISPLAY = 167
SSD1306_LCDHEIGHT = 64
SSD1306_LCDWIDTH = 128
SSD1306_MEMORYMODE = 32
SSD1306_NORMALDISPLAY = 166
SSD1306_SEGREMAP = 160
SSD1306_SETCOMPINS = 218
SSD1306_SETCONTRAST = 129
SSD1306_SETDISPLAYCLOCKDIV = 213
SSD1306_SETDISPLAYOFFSET = 211
SSD1306_SETHIGHCOLUMN = 16
SSD1306_SETLOWCOLUMN = 0
SSD1306_SETMULTIPLEX = 168
SSD1306_SETPRECHARGE = 217
SSD1306_SETSTARTLINE = 64
SSD1306_SETVCOMDETECT = 219
SSD1306_SWITCHCAPVCC = 2
SSD1306_command(cmd)[source]
SSD1306_data(data)[source]
WIDTH = 128
clearDisplay()[source]
cursor_x = 0
cursor_y = 0
displayOLED()[source]
drawChar(x, y, c, color, bg, size)[source]
drawCircle(x0, y0, r, color)[source]
drawFastHLine(x, y, w, color)[source]
drawFastVLine(x, y, h, color)[source]
drawLine(x0, y0, x1, y1, color)[source]
drawPixel(x, y, color)[source]
drawRect(x, y, w, h, color)[source]
fillRect(x, y, w, h, color)[source]
font = [0, 0, 0, 0, 0, 62, 91, 79, 91, 62, 62, 107, 79, 107, 62, 28, 62, 124, 62, 28, 24, 60, 126, 60, 24, 28, 87, 125, 87, 28, 28, 94, 127, 94, 28, 0, 24, 60, 24, 0, 255, 231, 195, 231, 255, 0, 24, 36, 24, 0, 255, 231, 219, 231, 255, 48, 72, 58, 6, 14, 38, 41, 121, 41, 38, 64, 127, 5, 5, 7, 64, 127, 5, 37, 63, 90, 60, 231, 60, 90, 127, 62, 28, 28, 8, 8, 28, 28, 62, 127, 20, 34, 127, 34, 20, 95, 95, 0, 95, 95, 6, 9, 127, 1, 127, 0, 102, 137, 149, 106, 96, 96, 96, 96, 96, 148, 162, 255, 162, 148, 8, 4, 126, 4, 8, 16, 32, 126, 32, 16, 8, 8, 42, 28, 8, 8, 28, 42, 8, 8, 30, 16, 16, 16, 16, 12, 30, 12, 30, 12, 48, 56, 62, 56, 48, 6, 14, 62, 14, 6, 0, 0, 0, 0, 0, 0, 0, 95, 0, 0, 0, 7, 0, 7, 0, 20, 127, 20, 127, 20, 36, 42, 127, 42, 18, 35, 19, 8, 100, 98, 54, 73, 86, 32, 80, 0, 8, 7, 3, 0, 0, 28, 34, 65, 0, 0, 65, 34, 28, 0, 42, 28, 127, 28, 42, 8, 8, 62, 8, 8, 0, 128, 112, 48, 0, 8, 8, 8, 8, 8, 0, 0, 96, 96, 0, 32, 16, 8, 4, 2, 62, 81, 73, 69, 62, 0, 66, 127, 64, 0, 114, 73, 73, 73, 70, 33, 65, 73, 77, 51, 24, 20, 18, 127, 16, 39, 69, 69, 69, 57, 60, 74, 73, 73, 49, 65, 33, 17, 9, 7, 54, 73, 73, 73, 54, 70, 73, 73, 41, 30, 0, 0, 20, 0, 0, 0, 64, 52, 0, 0, 0, 8, 20, 34, 65, 20, 20, 20, 20, 20, 0, 65, 34, 20, 8, 2, 1, 89, 9, 6, 62, 65, 93, 89, 78, 124, 18, 17, 18, 124, 127, 73, 73, 73, 54, 62, 65, 65, 65, 34, 127, 65, 65, 65, 62, 127, 73, 73, 73, 65, 127, 9, 9, 9, 1, 62, 65, 65, 81, 115, 127, 8, 8, 8, 127, 0, 65, 127, 65, 0, 32, 64, 65, 63, 1, 127, 8, 20, 34, 65, 127, 64, 64, 64, 64, 127, 2, 28, 2, 127, 127, 4, 8, 16, 127, 62, 65, 65, 65, 62, 127, 9, 9, 9, 6, 62, 65, 81, 33, 94, 127, 9, 25, 41, 70, 38, 73, 73, 73, 50, 3, 1, 127, 1, 3, 63, 64, 64, 64, 63, 31, 32, 64, 32, 31, 63, 64, 56, 64, 63, 99, 20, 8, 20, 99, 3, 4, 120, 4, 3, 97, 89, 73, 77, 67, 0, 127, 65, 65, 65, 2, 4, 8, 16, 32, 0, 65, 65, 65, 127, 4, 2, 1, 2, 4, 64, 64, 64, 64, 64, 0, 3, 7, 8, 0, 32, 84, 84, 120, 64, 127, 40, 68, 68, 56, 56, 68, 68, 68, 40, 56, 68, 68, 40, 127, 56, 84, 84, 84, 24, 0, 8, 126, 9, 2, 24, 164, 164, 156, 120, 127, 8, 4, 4, 120, 0, 68, 125, 64, 0, 32, 64, 64, 61, 0, 127, 16, 40, 68, 0, 0, 65, 127, 64, 0, 124, 4, 120, 4, 120, 124, 8, 4, 4, 120, 56, 68, 68, 68, 56, 252, 24, 36, 36, 24, 24, 36, 36, 24, 252, 124, 8, 4, 4, 8, 72, 84, 84, 84, 36, 4, 4, 63, 68, 36, 60, 64, 64, 32, 124, 28, 32, 64, 32, 28, 60, 64, 48, 64, 60, 68, 40, 16, 40, 68, 76, 144, 144, 144, 124, 68, 100, 84, 76, 68, 0, 8, 54, 65, 0, 0, 0, 119, 0, 0, 0, 65, 54, 8, 0, 2, 1, 2, 4, 2, 60, 38, 35, 38, 60, 30, 161, 161, 97, 18, 58, 64, 64, 32, 122, 56, 84, 84, 85, 89, 33, 85, 85, 121, 65, 33, 84, 84, 120, 65, 33, 85, 84, 120, 64, 32, 84, 85, 121, 64, 12, 30, 82, 114, 18, 57, 85, 85, 85, 89, 57, 84, 84, 84, 89, 57, 85, 84, 84, 88, 0, 0, 69, 124, 65, 0, 2, 69, 125, 66, 0, 1, 69, 124, 64, 240, 41, 36, 41, 240, 240, 40, 37, 40, 240, 124, 84, 85, 69, 0, 32, 84, 84, 124, 84, 124, 10, 9, 127, 73, 50, 73, 73, 73, 50, 50, 72, 72, 72, 50, 50, 74, 72, 72, 48, 58, 65, 65, 33, 122, 58, 66, 64, 32, 120, 0, 157, 160, 160, 125, 57, 68, 68, 68, 57, 61, 64, 64, 64, 61, 60, 36, 255, 36, 36, 72, 126, 73, 67, 102, 43, 47, 252, 47, 43, 255, 9, 41, 246, 32, 192, 136, 126, 9, 3, 32, 84, 84, 121, 65, 0, 0, 68, 125, 65, 48, 72, 72, 74, 50, 56, 64, 64, 34, 122, 0, 122, 10, 10, 114, 125, 13, 25, 49, 125, 38, 41, 41, 47, 40, 38, 41, 41, 41, 38, 48, 72, 77, 64, 32, 56, 8, 8, 8, 8, 8, 8, 8, 8, 56, 47, 16, 200, 172, 186, 47, 16, 40, 52, 250, 0, 0, 123, 0, 0, 8, 20, 42, 20, 34, 34, 20, 42, 20, 8, 170, 0, 85, 0, 170, 170, 85, 170, 85, 170, 0, 0, 0, 255, 0, 16, 16, 16, 255, 0, 20, 20, 20, 255, 0, 16, 16, 255, 0, 255, 16, 16, 240, 16, 240, 20, 20, 20, 252, 0, 20, 20, 247, 0, 255, 0, 0, 255, 0, 255, 20, 20, 244, 4, 252, 20, 20, 23, 16, 31, 16, 16, 31, 16, 31, 20, 20, 20, 31, 0, 16, 16, 16, 240, 0, 0, 0, 0, 31, 16, 16, 16, 16, 31, 16, 16, 16, 16, 240, 16, 0, 0, 0, 255, 16, 16, 16, 16, 16, 16, 16, 16, 16, 255, 16, 0, 0, 0, 255, 20, 0, 0, 255, 0, 255, 0, 0, 31, 16, 23, 0, 0, 252, 4, 244, 20, 20, 23, 16, 23, 20, 20, 244, 4, 244, 0, 0, 255, 0, 247, 20, 20, 20, 20, 20, 20, 20, 247, 0, 247, 20, 20, 20, 23, 20, 16, 16, 31, 16, 31, 20, 20, 20, 244, 20, 16, 16, 240, 16, 240, 0, 0, 31, 16, 31, 0, 0, 0, 31, 20, 0, 0, 0, 252, 20, 0, 0, 240, 16, 240, 16, 16, 255, 16, 255, 20, 20, 20, 255, 20, 16, 16, 16, 31, 0, 0, 0, 0, 240, 16, 255, 255, 255, 255, 255, 240, 240, 240, 240, 240, 255, 255, 255, 0, 0, 0, 0, 0, 255, 255, 15, 15, 15, 15, 15, 56, 68, 68, 56, 68, 124, 42, 42, 62, 20, 126, 2, 2, 6, 6, 2, 126, 2, 126, 2, 99, 85, 73, 65, 99, 56, 68, 68, 60, 4, 64, 126, 32, 30, 32, 6, 2, 126, 2, 2, 153, 165, 231, 165, 153, 28, 42, 73, 42, 28, 76, 114, 1, 114, 76, 48, 74, 77, 77, 48, 48, 72, 120, 72, 48, 188, 98, 90, 70, 61, 62, 73, 73, 73, 0, 126, 1, 1, 1, 126, 42, 42, 42, 42, 42, 68, 68, 95, 68, 68, 64, 81, 74, 68, 64, 64, 68, 74, 81, 64, 0, 0, 255, 1, 3, 224, 128, 255, 0, 0, 8, 8, 107, 107, 8, 54, 18, 54, 36, 54, 6, 15, 9, 15, 6, 0, 0, 24, 24, 0, 0, 0, 16, 16, 0, 48, 64, 255, 1, 1, 0, 31, 1, 1, 30, 0, 25, 29, 23, 18, 0, 60, 60, 60, 60, 0, 0, 0, 0, 0]
getRaw()[source]
load(arg)[source]
logobuff = [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 127, 127, 63, 63, 159, 159, 223, 223, 207, 207, 207, 239, 239, 47, 47, 39, 39, 7, 7, 67, 67, 83, 131, 135, 7, 7, 15, 15, 31, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 63, 31, 15, 199, 99, 17, 25, 12, 4, 2, 3, 7, 63, 255, 255, 255, 255, 255, 255, 255, 255, 254, 252, 240, 224, 224, 224, 192, 192, 128, 128, 128, 128, 129, 128, 0, 0, 0, 0, 0, 3, 3, 7, 31, 127, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 127, 15, 3, 192, 120, 134, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 254, 254, 252, 252, 249, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 143, 0, 0, 124, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 240, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 240, 128, 0, 7, 56, 96, 128, 0, 0, 0, 0, 0, 0, 0, 12, 63, 255, 127, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 31, 7, 227, 243, 249, 249, 249, 249, 249, 249, 243, 255, 255, 199, 131, 49, 57, 57, 57, 121, 115, 255, 255, 255, 255, 15, 15, 159, 207, 207, 207, 143, 31, 63, 255, 255, 159, 207, 207, 207, 143, 31, 63, 255, 255, 255, 15, 15, 159, 207, 207, 207, 255, 255, 0, 0, 255, 127, 63, 159, 207, 239, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 248, 240, 224, 129, 2, 4, 8, 16, 32, 96, 64, 128, 128, 135, 30, 115, 207, 159, 255, 255, 255, 255, 127, 63, 31, 31, 31, 31, 31, 31, 31, 7, 7, 7, 127, 127, 127, 127, 127, 127, 255, 255, 255, 255, 252, 240, 227, 231, 207, 207, 207, 207, 207, 207, 231, 255, 255, 231, 207, 207, 207, 207, 207, 198, 224, 240, 255, 255, 255, 0, 0, 231, 207, 207, 207, 199, 224, 240, 255, 225, 193, 204, 204, 204, 228, 192, 192, 255, 255, 255, 192, 192, 255, 255, 255, 255, 255, 255, 192, 192, 252, 248, 243, 231, 207, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 252, 248, 248, 240, 240, 224, 225, 225, 193, 193, 195, 195, 195, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 62, 62, 62, 62, 62, 255, 243, 3, 3, 51, 51, 51, 19, 135, 239, 255, 255, 63, 63, 159, 159, 159, 159, 63, 127, 255, 255, 255, 63, 31, 159, 159, 159, 31, 252, 252, 255, 63, 63, 159, 159, 159, 159, 63, 127, 255, 255, 255, 223, 159, 159, 159, 31, 127, 255, 255, 255, 255, 223, 31, 31, 191, 159, 159, 159, 255, 255, 127, 63, 159, 159, 159, 159, 31, 31, 255, 255, 247, 3, 7, 159, 159, 159, 31, 127, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 252, 252, 252, 252, 252, 252, 252, 252, 224, 224, 224, 255, 255, 255, 255, 255, 255, 255, 243, 240, 240, 247, 255, 254, 252, 248, 243, 255, 255, 248, 248, 242, 242, 242, 242, 242, 250, 255, 255, 255, 241, 242, 242, 242, 242, 248, 253, 255, 255, 248, 248, 242, 242, 242, 242, 242, 250, 255, 255, 249, 240, 242, 242, 242, 240, 240, 255, 255, 255, 255, 243, 240, 240, 243, 243, 255, 255, 255, 255, 252, 248, 243, 243, 243, 243, 243, 255, 255, 255, 247, 240, 240, 247, 255, 247, 240, 240, 247, 255]
name = 'OLED Display'
params = {'load': ['logo'], 'scroll': ['left', 'right', 'topright', 'topleft', 'bottomleft', 'bottomright', 'stop']}
pulseIt()[source]
rotation = 0
scroll(arg)[source]
setContrast(i)[source]
setCursor(x, y)[source]
setTextColor(c, b)[source]
setTextSize(s)[source]
setTextWrap(w)[source]
textbgcolor = 0
textcolor = 1
textsize = 1
wrap = True
writeChar(c)[source]
writeString(s)[source]
SEEL.SENSORS.SSD1306.connect(route, **args)[source]

SEEL.SENSORS.TSL2561 module

Adapted from https://github.com/janheise/TSL2561

class SEEL.SENSORS.TSL2561.TSL2561(I2C, **args)[source]
ADDRESS = 57
COMMAND_BIT = 128
CONTROL_POWEROFF = 0
CONTROL_POWERON = 3
FULLSPECTRUM = 0
GAIN_16X = 16
GAIN_1X = 0
INFRARED = 1
INTEGRATIONTIME_101MS = 1
INTEGRATIONTIME_13MS = 0
INTEGRATIONTIME_402MS = 2
NUMPLOTS = 3
PLOTNAMES = ['Full', 'IR', 'Visible']
READBIT = 1
REGISTER_CONTROL = 0
REGISTER_ID = 10
REGISTER_TIMING = 1
VISIBLE = 2
disable()[source]
enable()[source]
gain = 16
getID()[source]
getRaw()[source]
name = 'TSL2561 Luminosity'
setGain(gain)[source]
setTiming(timing)[source]
timing = 0
wait()[source]
SEEL.SENSORS.TSL2561.connect(route, **args)[source]

SEEL.SENSORS.supported module

Module contents