Skip to content

Instantly share code, notes, and snippets.

View bowserthewizard's full-sized avatar

bowserthewizard

View GitHub Profile
/////////////////////////////////////////////////////////////////
// Analog_Input
// A program that turns on an LED on and off based on the value
// read from the A/D
// Arduino version 1.05
/////////////////////////////////////////////////////////////////
int ledPin[] = {2,3,4,5};
void setup() //This function executes only once
{
/////////////////////////////////////////////////////////////////
// Analog_Input
// A program that turns on an LED on and off based on the value
// read from the A/D
// Arduino version 1.05
/////////////////////////////////////////////////////////////////
int ledPin[] = {2,3,4,5};
void setup() //This function executes only once
{
//#include <Servo.h>
//Servo myservo;
int duty_cycle=0;
void setup() //This function executes only once
{
// myservo.attach(3);
#ifndef PWMServo_h
#define PWMServo_h
/*
PWMServo.h - Hardware Servo Timer Library
http://arduiniana.org/libraries/pwmservo/
Author: Jim Studt, jim@federated.com
Copyright (c) 2007 David A. Mellis. All right reserved.
renamed to PWMServo by Mikal Hart
ported to other chips by Paul Stoffregen
Public Class LinearStageForm
Dim k, counter, delay As Long
Dim spd, Direction, enable, sensorMax As Short
Dim startT, chkT As New Double
Dim pos, min_pos, max_pos As New Integer
Dim seqSt, seqNext, motionSt, motionNext, command As String
Dim tmr As PerformanceTimer
Dim sim, Pause, ptimer As Boolean