Increment auf D10 & D13 gelegt

Dependencies:   mbed

Fork of _B15Test1 by Gottfried Enenkel

main.cpp

Committer:
Enenkel
Date:
2015-05-27
Revision:
2:9087cae78c6a
Parent:
1:628da1b465a4

File content as of revision 2:9087cae78c6a:

/***********************************
name:   BERTL15_Test5
author: Enenkel 
description:
    INCREMENT GEBER TEST
***********************************/
#include "mbed.h"

DigitalOut LedD10 (P1_8);      // LED D10 bis D13 IO Definieren
DigitalOut LedD13 (P1_11);
DigitalOut Von (P1_2);         // SPANNUNG 10V & 5V 
DigitalIn incrLI (P1_12);      // Incrementgeber LINKS
DigitalIn incrRE (P1_13);      // Incrementgeber RECHTS
DigitalOut incrON (P1_7);      // Incrementgeber ON / OFF
// *******  Hauptprogramm   ******** //
int main() {
    Von=1;                     // 5Vund Vmotor  = ON !!! 
    incrON =1;                 // Incrementgeber aktivieren  
    while (1)                  // incrLI und incrRE direkt auf die LED gelegt
      {
      LedD10= incrLI;
      LedD13= incrRE;
      }
}
// ********  END ******  //