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
""" | |
Super basic code to scan for and connect to v5 devices using the python bleak library. Prints out all data read over the user port. | |
""" | |
import argparse | |
import asyncio | |
from bleak import BleakScanner, BleakClient | |
SERVICE_UUID = "08590f7e-db05-467e-8757-72f6faeb13d5" |
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
## Delta Encoding for bytes of the same size in a single line lambda function. No external or standard libraries required | |
deltaSameLength = lambda d1,d2: b''.join([bytes().fromhex(hex(b1^b2).replace("0x","").rjust(2,"0")) for b1,b2 in zip(d1,d2)]) |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |