#include <stdlib.h>
#include "asuro.h"
gehe zum Quellcode dieser Datei
Funktionen | |
int | main (void) |
int main | ( | void | ) |
Definiert in Zeile 25 der Datei TasterTest/test.c.
00026 { 00027 uint8_t t1, t2; 00028 unsigned char text[16]; 00029 00030 Init(); 00031 SerPrint("\r\nTastsensor Test\r\n"); 00032 while (1) 00033 { 00034 t1 = PollSwitch(); 00035 t2 = PollSwitch(); 00036 if (t1 && t2 && t1 == t2) /* irgendeine Taste gedrueckt */ 00037 { 00038 itoa(t1, text, 10); /* Tastenwert senden */ 00039 SerPrint(text); 00040 SerPrint("\r\n"); /* Zeilenvorschub */ 00041 } 00042 Msleep(500); 00043 } 00044 }