Skip to content

Instantly share code, notes, and snippets.

View avachen's full-sized avatar

Ava Chen avachen

View GitHub Profile
@avachen
avachen / gist:f5751fc69302105ac4b16811d08f0359
Created September 26, 2018 23:00
nucleo log motor script
//For 2.74 class project
#include "mbed.h"
#include "rtos.h"
#include "EthernetInterface.h"
#include "ExperimentServer.h"
#include "QEI.h"
#define NUM_INPUTS 1
#define NUM_OUTPUTS 4
@avachen
avachen / gist:ab0c821babfb0faa31fcd1f76047a4fb
Created September 26, 2018 22:17
snippet ironpython <=> python2 <=> serial
import platform
if (not platform.python_implementation().lower() == 'ironpython'):
print("Wrong version of Python, use IronPython")
exit(1)
import wpf, clr, System, time, math, csv, subprocess
from System import DateTime
clr.AddReferenceToFileAndPath("C:\Users\Shamblelab\Documents\shamblelab\instron\FUTEK USB DLL.dll")
clr.AddReferenceByPartialName("IronPython")
import FUTEK_USB_DLL
from FUTEK_USB_DLL import USB_DLL