This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.hwyl.sexytopo.comms.sap6 | |
import android.annotation.SuppressLint | |
import android.bluetooth.BluetoothDevice | |
import android.bluetooth.BluetoothGatt | |
import android.bluetooth.BluetoothGattCallback | |
import android.bluetooth.BluetoothGattCharacteristic | |
import android.bluetooth.BluetoothGattDescriptor | |
import android.bluetooth.BluetoothManager | |
import android.bluetooth.BluetoothProfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import re | |
import sys | |
if sys.platform=="linux": | |
USBIP_EXEC = ["sudo", "/usr/bin/usbip"] | |
else: | |
USBIP_EXEC = ["C:\summat"] | |
PORTS = ["3240", "3241"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smbus | |
import time | |
DEV_ADDRESS = 0x15 | |
class Bearable(): | |
def __init__(self): | |
self.bus=smbus.SMBus(1) | |
self.leds = [0]*12 |