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 python | |
# Copyright 2016 Dominic Spill, Michael Ossmann, Will Code | |
BT_NUM_CHANNELS = 79 | |
class Piconet(object): | |
def __init__(self, address): | |
self.address = address | |
self.sequence = [] |
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 python | |
decks = [range(1, 53)] | |
def shuffle(deck): | |
a = deck[:len(deck)/2] | |
b = deck[len(deck)/2:] | |
c = zip(a, b) | |
return c |
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
/* | |
* Copyright 2016 Dominic Spill <dominicgs@gmail.com> | |
* | |
* This file is part of HackRF. | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2, or (at your option) | |
* any later version. | |
* |
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
Multiplexed digital pins | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
P0_0 | L3 | K3 | G2 | 32 | [2] | N; | I/O | GPIO0[0] — General purpose digital input/output pin. | ||
PU | I/O | SSP1_MISO — Master In Slave Out for SSP1. | ||||||||
I | ENET_RXD1 — Ethernet receive data 1 (RMII/MII interface). | |||||||||
I/O | SGPIO0 — General purpose digital input/output pin. | |||||||||
- | R — Function reserved. | |||||||||
- | R — Function reserved. | |||||||||
I/O | I2S0_TX_WS — Transmit Word Select. It is driven by the master and received by the slave. Corresponds to the signal WS in the I 2 S-bus specification. |
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 csv | |
class Pin(object): | |
def __init__(self, name, number): | |
self.name = name | |
if self.name.startswith('P'): | |
x = self.name.split('_') | |
self.port = x[0].strip('P') |
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 argparse | |
import struct | |
from PIL import Image | |
if __name__ == "__main__": | |
colour_map = { | |
(193, 177, 203) : (193, 177, 203),# silkscreen | |
(197, 183, 208) : (197, 183, 208), # silkscreen + copper |
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 | |
from __future__ import print_function | |
import usb | |
import argparse | |
import sys | |
from usb.control import get_descriptor | |
def print_feature_descriptor(feat_desc): |
OlderNewer