Josef Humer
/
BuNuc_read_Din
2 Taster als Eingang, 2 Leds als Ausgang
Revision 0:700edd849408, committed 2019-11-22
- Comitter:
- heseg
- Date:
- Fri Nov 22 14:37:41 2019 +0000
- Commit message:
- Digital Eingang und Digital Ausgang, 2 Taster, 2 LEDs
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 22 14:37:41 2019 +0000 @@ -0,0 +1,23 @@ +/* ********************************************************** */ +/* *************** Projekt: BuNuc_read_Din ****************** */ +/* BULME Graz, Abteilung Elektronik und Technische Informatik */ +/* *** Tasten einlesen und an LED ausgeben ***************** */ +/* ********************************************************** */ + +/* **** mbed - Anschlussdefinition ************************** */ + +#include "mbed.h" + +DigitalOut vtaste1(D13); +DigitalOut vtaste2(D11); +DigitalIn taste1(A1); +DigitalIn taste2(A2); + +int main() +{ + while(1) + { + vtaste1=taste1; + vtaste2=taste2; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 22 14:37:41 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file