#include "asuro.h"
#include "lcd.h"
#include "i2c.h"
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | DELAY 1500 |
Funktionen | |
int | main (void) |
#define DELAY 1500 |
Definiert in Zeile 5 der Datei I2CLCD/test.c.
int main | ( | void | ) |
Definiert in Zeile 7 der Datei I2CLCD/test.c.
00008 { 00009 Init(); 00010 InitI2C(); 00011 InitLCD(); 00012 00013 PrintLCD("LCD Test: ", 0); 00014 Msleep(DELAY); 00015 00016 while(1) 00017 { 00018 00019 Msleep(DELAY); 00020 BacklightLCD(1); 00021 00022 ClearLCD(); 00023 PrintSetLCD(3, 0, "Set Cursor"); 00024 Msleep(DELAY); 00025 ClearLCD(); 00026 PrintSetLCD(0 , 1, "Set Line"); 00027 Msleep(DELAY); 00028 ClearLCD(); 00029 PrintSetLCD(1 , 1, "Set Cursor Line"); 00030 Msleep(DELAY); 00031 ClearLCD(); 00032 PrintSetLCD(0 , 0, "Test Int"); 00033 SetCursorLCD(9,0); 00034 PrintIntLCD(10); 00035 Msleep(DELAY); 00036 ClearLCD(); 00037 PrintAlignLCD(LEFT , 0, "LEFT"); 00038 Msleep(DELAY); 00039 ClearLCD(); 00040 PrintAlignLCD(CENTER , 0, "CENTER"); 00041 Msleep(DELAY); 00042 ClearLCD(); 00043 PrintAlignLCD(RIGHT , 0, "RIGHT"); 00044 Msleep(DELAY); 00045 ClearLCD(); 00046 SetCursorLCD(0,0); 00047 PrintLCD("abcdefghijklmnopqrstuvwyz1234567", 1); 00048 Msleep(DELAY); 00049 00050 } 00051 00052 return 0; 00053 }