TINF_BankomatPIN

Committer:
martwerl
Date:
Fri Jun 22 13:56:38 2018 +0000
Revision:
0:465c627254e2
TINF_BankomatPIN

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:465c627254e2 1 #include "mbed.h"
martwerl 0:465c627254e2 2 #include "Bankomat.h"
martwerl 0:465c627254e2 3
martwerl 0:465c627254e2 4 Bankomat bankcode(LED1,LED2,LED3,LED4);
martwerl 0:465c627254e2 5
martwerl 0:465c627254e2 6 int main()
martwerl 0:465c627254e2 7 {
martwerl 0:465c627254e2 8 printf("PIN wird erstellt!\n\n");
martwerl 0:465c627254e2 9 wait_ms(1000);
martwerl 0:465c627254e2 10
martwerl 0:465c627254e2 11 printf("Ausgabe an LEDs!\n(Binaercode)\n\n");
martwerl 0:465c627254e2 12 wait_ms(1000);
martwerl 0:465c627254e2 13
martwerl 0:465c627254e2 14 bankcode.random();
martwerl 0:465c627254e2 15
martwerl 0:465c627254e2 16 printf("Bitte 4-stelligen PIN eingeben!\n\n");
martwerl 0:465c627254e2 17 wait_ms(1000);
martwerl 0:465c627254e2 18 bankcode.eingabe();
martwerl 0:465c627254e2 19 // printf("\nEingabe erledigt\n");
martwerl 0:465c627254e2 20 bankcode.ausgabe();
martwerl 0:465c627254e2 21 // printf("\nAusgabe erledigt\n");
martwerl 0:465c627254e2 22 wait_ms(5000);
martwerl 0:465c627254e2 23 }