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
///////////////////////////////////////////////////////////////// | |
// 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 | |
{ |
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
///////////////////////////////////////////////////////////////// | |
// 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 | |
{ |
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
//#include <Servo.h> | |
//Servo myservo; | |
int duty_cycle=0; | |
void setup() //This function executes only once | |
{ | |
// myservo.attach(3); |
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
#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 |
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
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 |