//========================================================= // LPC1114 Project //========================================================= // File Name : main.c // Function : Main Routine //--------------------------------------------------------- // Rev.01 2010.08.01 Munetomo Maruyama //--------------------------------------------------------- // Copyright (C) 2010-2011 Munetomo Maruyama //========================================================= // ---- License Information ------------------------------- // Anyone can FREELY use this code fully or partially // under conditions shown below. // 1. You may use this code only for individual purpose, // and educational purpose. // Do not use this code for business even if partially. // 2. You can copy, modify and distribute this code. // 3. You should remain this header text in your codes // including Copyright credit and License Information. // 4. Your codes should inherit this license information. //========================================================= // ---- Patent Notice ------------------------------------- // I have not cared whether this system (hw + sw) causes // infringement on the patent, copyright, trademark, // or trade secret rights of others. You have all // responsibilities for determining if your designs // and products infringe on the intellectual property // rights of others, when you use technical information // included in this system for your business. //========================================================= // ---- Disclaimers --------------------------------------- // The function and reliability of this system are not // guaranteed. They may cause any damages to loss of // properties, data, money, profits, life, or business. // By adopting this system even partially, you assume // all responsibility for its use. //========================================================= #ifdef __USE_CMSIS #include "LPC11xx.h" #endif #include "color_led.h" #include "systick.h" #include "lcd1602.h" //==================== // Main Routine //==================== int main(void) { //---------------------- // Write Your Code here. //---------------------- // // Initialization // Init_SysTick(); Init_Color_LED(); Init_LCD1620(); // // Main Loop // while(1) { LCD1620_printf_Position(0,0); LCD1620_printf("LCD1620 with MB\nLED=%d", Get_Ticks()>>6 ); // // Draw Color LED // Draw_Color_LED(); } //--------------------- // Return to Start Up //--------------------- return 0; } //========================================================= // End of Program //=========================================================