This file contains hidden or 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
nvidia@3b08843b0311:~/nvidia/nvidia_sdk/JetPack_4.6.6_Linux_JETSON_TX2_TARGETS/Linux_for_Tegra$ ~/.nvsdkm/replays/scripts/JetPack_4.6.6_Linux/NV_L4T_FLASH_TX2_WITH_OS_IMAGE_COMP.sh | |
sudo ./nvsdkmanager_flash.sh --nv-auto-config --username tai | |
Password for L4T new user tai: | |
*** Checking ONLINE mode ... OK. | |
*** Checking target board connection ... 1 connections found. | |
*** Reading ECID ... FUSELEVEL=fuselevel_production hwchipid=0x18 bootauth=NS | |
*** Reading EEPROM ... "/home/nvidia/nvidia/nvidia_sdk/JetPack_4.6.6_Linux_JETSON_TX2_TARGETS/Linux_for_Tegra/bootloader/tegraflash.py" --chip 0x18 --applet "/home/nvidia/nvidia/nvidia_sdk/JetPack_4.6.6_Linux_JETSON_TX2_TARGETS/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin; dump eeprom baseinfo bbd.bin; reboot recovery" | |
Welcome to Tegra Flash | |
version 1.0.0 | |
Type ? or help for help and q or quit to exit |
This file contains hidden or 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 | |
# | |
# POC of T-Digest algorithm based distributed processing | |
# | |
from tdigest import TDigest | |
from multiprocessing import Pool | |
import numpy as np | |
import time | |
import functools |
This file contains hidden or 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
# RP2 DMA tests based on following projects | |
# - https://github.com/rkompass/RPi2040_mPy | |
# - https://github.com/jbentham/pico | |
import time | |
from array import array | |
import gc | |
import machine | |
from machine import Pin, ADC |
This file contains hidden or 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 | |
""" | |
Quick script to test DFPlayer Mini MP3 module | |
- https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299 | |
""" | |
import sys | |
from serial import Serial |
This file contains hidden or 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
#!/bin/sh | |
# | |
# Quick hack to export a device into container | |
# | |
# NOTE: | |
# - systemd-run cannot be used as capability is dropped from udev service | |
# | |
exec > /dev/null 2>&1 |
This file contains hidden or 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 time | |
import usbtmc | |
def capture(fmt='png'): | |
tmc = usbtmc.Instrument(0x1ab1, 0x04ce) | |
# magic initialization for DS1000Z | |
# |
This file contains hidden or 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 | |
def usage(): | |
p = os.path.basename(sys.argv[0]) | |
return f""" | |
{p} - Cat USB HID device input | |
Usage: {p} -a bus.dev [-i ifnum] | |
Example: | |
$ {p} -a 1.31 | |
""".lstrip() |
This file contains hidden or 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 tkinter import * | |
def flip(ev): | |
entry = ev.widget | |
cur = entry.get() | |
if '/' in cur: | |
cur = '/'.join(reversed(cur.split('/'))) | |
entry.delete(0, 'end') |
This file contains hidden or 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
#include "I2CSlaveEx.h" | |
I2CSlaveEx::I2CSlaveEx(PinName sda, PinName scl) : _i2c() { | |
i2c_init(&_i2c, sda, scl); | |
i2c_frequency(&_i2c, 100000); | |
i2c_slave_mode(&_i2c, 1); | |
} | |
void I2CSlaveEx::frequency(int hz) { |
This file contains hidden or 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 | |
""" | |
Unofficial CLI tool to control FNIRSI Power Source (DC580, DC6006L, ...) | |
See Also: | |
- https://github.com/jcheger/fnirsi-dc580-protocol | |
""" | |
import sys | |
import os |
NewerOlder