Skip to content

Instantly share code, notes, and snippets.

@jboecker
jboecker / Vid60StepperExample.ino
Last active May 19, 2023 10:05
Vid60 stepper support for DCS-BIOS
#define DCSBIOS_IRQ_SERIAL
#include <AccelStepper.h>
#include "DcsBios.h"
struct StepperConfig {
unsigned int maxSteps;
unsigned int acceleration;
unsigned int maxSpeed;
};
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define DCSBIOS_IRQ_SERIAL
#include <DcsBios.h>
#include <Servo.h>
#!/usr/bin/python
# set nonstandard baudrate.
# based on http://unix.stackexchange.com/a/327366/119298
# this version takes the device file and baudrate as arguments
# and prints an error message if the device file could not be opened.
import sys,os,array,fcntl,argparse
parser = argparse.ArgumentParser()