Chris Elsholz / Mbed 2 deprecated Quadrocopter

Dependencies:   mbed TextLCD

Fork of Quadrocopter by Marco Friedmann

Files at this revision

API Documentation at this revision

Comitter:
MarcoF89
Date:
Sun Aug 06 20:24:18 2017 +0000
Parent:
6:27a09e8bebfb
Child:
8:769ff3814355
Commit message:
Taster, Poti und Q-Brain integriert

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
messen/messen.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 02 13:11:30 2017 +0000
+++ b/main.cpp	Sun Aug 06 20:24:18 2017 +0000
@@ -2,10 +2,20 @@
 #include "stdio.h"
 #include <Timer.h>
 #include "messen.h"
+
 static Serial pc(SERIAL_TX, SERIAL_RX);
 static SPI spi(PE_6,PE_5,PE_2);  //mosi,miso,sclk
 static DigitalOut ncs(PE_4);    //ssel
 
+static AnalogIn potis_1 (PF_3);
+static AnalogIn potis_2 (PF_10);
+static AnalogIn potis_3 (PF_4);
+static AnalogIn potis_4 (PF_5);
+
+static DigitalIn taster1 (PG_7);
+static DigitalIn taster2 (PD_10);
+static DigitalIn taster3 (PG_14);
+static DigitalIn taster4 (PF_12);
 
 int main()
 { 
--- a/messen/messen.cpp	Wed Aug 02 13:11:30 2017 +0000
+++ b/messen/messen.cpp	Sun Aug 06 20:24:18 2017 +0000
@@ -7,6 +7,17 @@
 extern SPI spi(PE_6,PE_5,PE_2);         //mosi,miso,sclk
 extern DigitalOut ncs(PE_4);            //ssel
 
+extern AnalogIn potis_1 (PF_3);
+extern AnalogIn potis_2 (PF_10);
+extern AnalogIn potis_3 (PF_4);
+extern AnalogIn potis_4 (PF_5);
+
+extern DigitalIn taster1 (PG_7);
+extern DigitalIn taster2 (PD_10);
+extern DigitalIn taster3 (PG_14);
+extern DigitalIn taster4 (PF_12);
+
+
 /**********************/
 /*Initialisieren**Gyro*/
 /**********************/