Testtemp

From ArduinoInfo
Jump to navigation Jump to search

H1 HERE


H2 HERE


H3 HERE


H4 HERE


H5 HERE


H6 HERE


MORE H6 HERE
This is a regular sentence with input device
more stuff/* YourDuino Switch-LED Example
- Reads Switch, BLINKS LED When pressed
terry@yourduino.com */

/*-----( Declare Constants )-----*/
#define LED 13
#define SWITCH 7

/*-----( Declare Variables )-----*/
int SwitchValue;

void setup() /*------ SETUP: RUNS ONCE ------*/
{
pinMode(LED, OUTPUT);
pinMode(SWITCH, INPUT);
}/* --(end setup )--- */

void loop() /*---- LOOP: RUNS CONSTANTLY ----*/
{
SwitchValue = digitalRead(SWITCH);

if (SwitchValue == HIGH)
{
digitalWrite(LED, HIGH);
delay(400);
digitalWrite(LED, LOW);
delay(200);
}
}/* --(end main loop )-- */






/* YourDuino Switch-LED Example
 - Reads Switch, BLINKS LED When pressed 
 terry@yourduino.com */

/*-----( Declare Constants )-----*/
#define LED 13
#define SWITCH  7

/*-----( Declare Variables )-----*/
int SwitchValue;

void setup() /*------ SETUP: RUNS ONCE ------*/
{
  pinMode(LED, OUTPUT);
  pinMode(SWITCH, INPUT);
}/* --(end setup )--- */

void loop() /*---- LOOP: RUNS CONSTANTLY ----*/
{
  SwitchValue = digitalRead(SWITCH);

  if (SwitchValue == HIGH)
  {
    digitalWrite(LED, HIGH);
    delay(400);
    digitalWrite(LED, LOW);
    delay(200);
  }
}/* --(end main loop )-- */




/* YourDuino Switch-LED Example
- Reads Switch, BLINKS LED When pressed
terry@yourduino.com */

/*-----( Declare Constants )-----*/
#define LED 13
#define SWITCH 7

/*-----( Declare Variables )-----*/
int SwitchValue;

void setup() /*------ SETUP: RUNS ONCE ------*/
{
pinMode(LED, OUTPUT);
pinMode(SWITCH, INPUT);
}/* --(end setup )--- */

void loop() /*---- LOOP: RUNS CONSTANTLY ----*/
{
SwitchValue = digitalRead(SWITCH);

if (SwitchValue == HIGH)
{
digitalWrite(LED, HIGH);
delay(400);
digitalWrite(LED, LOW);
delay(200);
}
}/* --(end main loop )-- */

/* YourDuino Switch-LED Example - Reads Switch, BLINKS LED When pressed terry@yourduino.com */ /*-----( Declare Constants )-----*/ #define LED 13 #define SWITCH 7 /*-----( Declare Variables )-----*/ int SwitchValue; void setup() /*------ SETUP: RUNS ONCE ------*/ { pinMode(LED, OUTPUT); pinMode(SWITCH, INPUT); }/* --(end setup )--- */ void loop() /*---- LOOP: RUNS CONSTANTLY ----*/ { SwitchValue = digitalRead(SWITCH); if (SwitchValue == HIGH) { digitalWrite(LED, HIGH); delay(400); digitalWrite(LED, LOW); delay(200); } }/* --(end main loop )-- */