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
// AccelStepper.cpp | |
// | |
// Copyright (C) 2009-2013 Mike McCauley | |
// $Id: AccelStepper.cpp,v 1.23 2016/08/09 00:39:10 mikem Exp $ | |
#include "AccelStepper.h" | |
#if 0 | |
// Some debugging assistance | |
void dump(uint8_t* p, int l) |
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 <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_LSM9DS0.h> | |
#include <Adafruit_Simple_AHRS.h> | |
#include <SoftwareSerial.h> | |
#define PAUSEBTN 5 | |
#define CALIBRATEBTN 6 | |
#define PLAYBTN 7 |
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 <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define LEDSTRIP 6 | |
#define NUMPIXELS 48 | |
#define BRIGHTNESS 255 | |
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, LEDSTRIP, NEO_GRBW + NEO_KHZ800); |
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
void gReset() { | |
Serial1.write(0x18); | |
delay(250); | |
clearPrintTitle(); | |
displayMenu(currentMenuItem); | |
} | |
void gZero() { | |
Serial1.println("G0 X0.00 Y0.00 Z0.00 F20\n"); | |
delay(250); |
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
/*---------------------------------- | |
PROGENITOR Sabertooth Steering Wheel | |
------------------------------------*/ | |
// INCLUSIONS | |
//------------------------------------------- | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> |
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
#define MOVETIME 1000 | |
#define FA 10 | |
#define BA 11 | |
#define enFA 2 | |
#define enBA 3 | |
#define FB 5 | |
#define BB 6 |
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 <Adafruit_NeoPixel.h> | |
#define CENTER 130 | |
#define STEER_RANGE 60 | |
#define LEFT_BOUND (CENTER - STEER_RANGE) | |
#define RIGHT_BOUND (CENTER + STEER_RANGE) | |
#define IDLE_RANGE 5 | |
#define PIN 8 |
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
void setup() { | |
// put your setup code here, to run once: | |
} | |
void loop() { | |
// put youdgbegegengegnde here, to run repeatedly: | |
} |
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
/* | |
Blink | |
Turns an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO | |
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to | |
the correct LED pin independent of which board is used. | |
If you want to know what pin the on-board LED is connected to on your Arduino | |
model, check the Technical Specs of your board at: |
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
/* | |
Blink | |
Turns an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO | |
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to | |
the correct LED pin independent of which board is used. | |
If you want to know what pin the on-board LED is connected to on your Arduino | |
model, check the Technical Specs of your board at: |
NewerOlder