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 os | |
import io | |
MP_EWOULDBLOCK = const(11) | |
class LoggingStream(io.IOBase): | |
def __init__(self, path): | |
self._f = open(path, "a") | |
def read(self, sz=None): |
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 sys | |
sys.path.append('') | |
from micropython import const | |
import micropython | |
import uasyncio as asyncio | |
import io |
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
b"\xd6\xbd\xb1\xa2\xffx\xe7@\xa0L\xa7Q\x11\xd7\xe6\xba'\xae$=\x81T3b\x07I\x85J\x19\x94\r\x89" | |
b'\xb1\xbc\x9eR\xef\xd3\xeaT\xcf\xfb\xbb)\xe3\xdfy*\x93?W\xcag~\x13c\x9bKHt\xc3\x8d[\xf7' | |
b"'\xbc\xbf+\x96\xbd\r\xc0\xef*|\xda\x11\r\xa5\xb1\xe9\xdc`\xa6X\x9fx\x9f\xc6Q[\xb9\xa8\xad\x8e\x1f" | |
b'\xa8\x03\xb4m\xc7dP\xb3T\x91\x9b\xd2\xa6\x18b:\x18ZGG\xf0aF"\xd1\xfdH3\x87\xad\xb9D' | |
b'\xcao\xdd\xfa\xda\xd6\x0b$\x95\x8b\xaa\x02z\xb1m\xae\xbe\x9a\xf3\xc6\xd8\xf1\xef25\x1b\xc3\x01\xa1(]\xaf' | |
b"\x1c\xcc\x8c\xe7N\xb6\xf4B\x99\xe1\x9d'\nu\xf1\xba\x0c\xfb\xb6\xbf.b\x06\xcd\xcf\xa2\x071\xb2X\xdci" | |
b'\x0c\x08]\xc1\xd4\x1eY\xb6\xb3\x08P\x02M\x0bu\x8cwdCNd\xb0\xa9x\xa5\x99\x8e\x1c\xf8\xe3b8' | |
b'\xefQ\x841\xdd\x07\xdb?\\\x03j\x94o\xaf%\xd1k1(8H\xf4\xd8,\x02,z\x8fdp\x08\xe6' | |
b'\xce\xe3j\xa5\xa0\xb3\xb7\xc2#*\x9f\xa1s\xb8?j\xa4Q\xb1U\xd4S\xd1,\xee\xedG\xd06\x16q\x9d' | |
b'0\x19\xcd l\xa1\xd5\xa2\xee\xfdFN\xf2p\x0fV\xa5&\x15\xf4TY\xb8\x0f\x02\xad9\x82\x9060\xda' |
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
4008b570 <r_rwble_isr>: | |
4008b570: 004136 entry a1, 32 | |
4008b573: fff631 l32r a3, 4008b54c <btdm_rf_bb_init_phase1+0x38> | |
4008b576: 0020c0 memw | |
4008b579: 0328 l32i.n a2, a3, 0 | |
4008b57b: 422216 beqz a2, 4008b9a1 <r_rwble_isr+0x431> | |
4008b57e: 80a092 movi a9, 128 | |
4008b581: 770297 bnone a2, a9, 4008b5fc <r_rwble_isr+0x8c> | |
4008b584: f41a31 l32r a3, 400885ec <r_ld_acl_ssr_set+0x78> |
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
argument 10 | |
object 10 | |
function 7 | |
can't 10 | |
not 13 | |
must 9 | |
supported 5 | |
generator 5 | |
multiple 5 | |
assignment 4 |
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
from microbit import * | |
ANNOYING = 100 | |
def beep(): | |
pin14.write_digital(1) | |
sleep(ANNOYING) | |
pin14.write_digital(0) | |
while True: |
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 csv | |
import datetime | |
import dateutil.parser | |
import json | |
import re | |
import requests | |
import sys | |
from collections import defaultdict | |
from functools import partial |
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 csv | |
import dateutil.parser | |
import json | |
import requests | |
import sys | |
# Get a token from https://github.com/settings/tokens | |
USER='jimmo' | |
TOKEN='' | |
REPO='' |
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
from litex.gen import * | |
# Module that toggles an LED every `cycles` clock cycles. | |
class BlinkerFlash(Module): | |
def __init__(self, led, cycles): | |
# Create a counter that can hold a value at least as big as `cycles`. | |
counter = Signal(max=cycles) | |
# Every time the counter gets to zero, toggle the LED. |
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
from litex.gen import * | |
# Module that toggles an LED every `cycles` clock cycles. | |
class BlinkerFlash(Module): | |
def __init__(self, led, cycles): | |
# Create a counter that can hold a value at least as big as `cycles`. | |
counter = Signal(max=cycles) | |
# Every time the counter gets to zero, toggle the LED. |
NewerOlder