Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of _HIMBED_TEST1 by
Revision 2:145755cf7bef, committed 2017-10-10
- Comitter:
- Enenkel
- Date:
- Tue Oct 10 09:16:19 2017 +0000
- Parent:
- 1:d6e5f9c188d3
- Commit message:
- HIMBED_TEST1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 28 07:25:09 2015 +0000 +++ b/main.cpp Tue Oct 10 09:16:19 2017 +0000 @@ -1,5 +1,5 @@ // HIMBED _TEST1 -// BUKME Graz, by Enenkel 26.2.2014 +// BULME Graz, by Enenkel 26.2.2014 #include "mbed.h" @@ -32,17 +32,19 @@ DigitalOut ledRT(P0_21); // rote LED // LDR Input AnalogIn LDR(P0_12); // Analoges einlesen des LDR -int a; - +AnalogIn POTI (P0_11); // Analog in des POTI +int b; // Wert für POTI +int a; // Hauptprogramm int main() { char readChar = 0; - pc.printf("Welcome to BERTL14\n\r"); + pc.printf("Welcome to HIMBED\n\r"); + wait (2); /******************** RGB LED TEST ************************/ - pc.printf("RGB TEST WEIS - ROT GRÜN BLAU\n\r"); + pc.printf("RGB TEST WEIS - ROT GRUN BLAU\n\r"); ledGR = 0; // Alle RGB LED EIN ledBL = 0; ledRT = 0; @@ -68,7 +70,7 @@ ledBL = 1; wait(0.1); /********************* 2x Lauflicht der LEDS *************/ - pc.printf("LAUFLICHT ÜBER 12 LED \n\r"); + pc.printf("LAUFLICHT UBER 12 LED \n\r"); a=1; while (a<3) { ledD1=1; @@ -161,6 +163,10 @@ ledD2=0; wait (0.01); + +/*********** POTI *********** + + /************************** *********************/ /* readChar = pc.getc(); if(readChar >= 65 && readChar <= 90){ // Großbuchstaben in Kleinbuchstaben umwandeln