See:
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
update_robots.env |
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 esp | |
import esp32 | |
import micropython | |
import network | |
import gc | |
import socket | |
import ssl | |
import time | |
SSID = 'DebugAP' |
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
# Create a /dev/serial/usb/VID:PID symlink for each usb serial device | |
# | |
# - Kernel will manage multiple devices with the same VID:PID so the symlink points to the latest attached (I think). | |
# - Doesn't handle devices with >1 port, looks like it links the first one(?). /dev/serial/by-id probably better for that. | |
SUBSYSTEMS=="tty", ENV{ID_BUS}=="usb", SYMLINK+="serial/usb/$env{ID_USB_VENDOR_ID}:$env{ID_USB_MODEL_ID}" |
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
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt | |
index 8c8119e06..98c3de93d 100644 | |
--- a/ports/rp2/CMakeLists.txt | |
+++ b/ports/rp2/CMakeLists.txt | |
@@ -92,6 +92,7 @@ set(MICROPY_SOURCE_LIB | |
${MICROPY_DIR}/shared/runtime/interrupt_char.c | |
${MICROPY_DIR}/shared/runtime/mpirq.c | |
${MICROPY_DIR}/shared/runtime/pyexec.c | |
+ ${MICROPY_DIR}/shared/runtime/semihosting.c | |
${MICROPY_DIR}/shared/runtime/stdout_helpers.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
#!/usr/bin/env python | |
# Place in same directory as https://github.com/burpen/hl200200-controller-uart-utility code | |
from controller import * | |
import serial | |
import struct | |
import time | |
s = serial.Serial('/dev/ttyUSB0', 19200) | |
def readReg(reg, mask=0xFFF): |
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 machine | |
from micropython import const | |
_CONTROL_STAGE_IDLE = const(0) | |
_CONTROL_STAGE_SETUP = const(1) | |
_CONTROL_STAGE_DATA = const(2) | |
_CONTROL_STAGE_ACK = const(3) | |
_PACKET_SIZE = const(64) |
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 | |
import csv | |
import base64 | |
import re | |
import struct | |
last_counter = [None, None] | |
lines = 0 | |
with open("spammer.txt") as f: |
NewerOlder