Skip to content

Instantly share code, notes, and snippets.

@castis
castis / bluetoothctl.py
Last active July 2, 2024 01:00 — forked from egorf/bluetoothctl.py
Bluetoothctl wrapper in Python
# Based on ReachView code from Egor Fedorov (egor.fedorov@emlid.com)
# Updated for Python 3.6.8 on a Raspberry Pi
import time
import pexpect
import subprocess
import sys
import logging
@castis
castis / MPL3115A2.py
Created February 13, 2018 14:14 — forked from pepijndevos/MPL3115A2.py
A Python lib for reading the MPL3115A2 over the Raspberry Pi I2C bus.
from smbus import SMBus
from sys import exit
#I2C ADDRESS/BITS
MPL3115A2_ADDRESS = (0x60)
#REGISTERS
MPL3115A2_REGISTER_STATUS = (0x00)