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 os import path | |
import shutil | |
import json | |
import argparse | |
import pathlib | |
# Usage: | |
# first locate the calibration file for your device. Calibration files are stored here: C:\Users\<your user folder>\AppData\Roaming\Logic\calibrations | |
# the first part of the file name is the base 10 version of the device ID. | |
# If there is more than 1 .cal file, you can copy the hex device ID shown in the device information dialog into a hex to decimal converter online, to locate the correct cal file. |
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
npm init -y | |
yarn add --dev typescript ts-node nodemon @types/node | |
npx tsc --init --outDir Dist | |
touch index.ts | |
npx npm-add-script -k dev -v "nodemon index.ts" | |
npx npm-add-script -k start -v "ts-node index.ts" | |
mkdir .vscode | |
echo '{ "editor.formatOnSave": true }' > .vscode\settings.json |
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
{ | |
"version": "0.0.1", | |
"apiVersion": "1.0.0", | |
"author": "Mark \"cool guy\" Garrison", | |
"name": "Marks Utilities", | |
"extensions": { | |
"Fancy I2C": { | |
"type": "HighLevelAnalyzer", | |
"entryPoint": "util.I2cHla" | |
}, |
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 saleae | |
#add this function to saleae.py: | |
# def capture_blocking(self): | |
# '''Start a new capture and immediately return.''' | |
# try: | |
# self._cmd('CAPTURE', True) | |
# return True | |
# except self.CommandNAKedError: | |
# return False |
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
<Query Kind="Program"> | |
<Reference><ProgramFilesX86>\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.Helpers.dll</Reference> | |
<Namespace>System.Net</Namespace> | |
<Namespace>System.Threading</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> | |
<Namespace>System.Web.Helpers</Namespace> | |
</Query> | |
//Requires the following additional namespace imports: | |
//System.Net |