Yoshiyuki Uehara / Mbed 2 deprecated Maple

Dependencies:   mbed

Revision:
3:eec13a411e94
Parent:
1:aefa1992ce0f
diff -r 299a1c9a5795 -r eec13a411e94 Maple.cpp
--- a/Maple.cpp	Sun Oct 16 01:27:35 2011 +0000
+++ b/Maple.cpp	Sun Oct 30 21:20:23 2011 +0000
@@ -8,9 +8,6 @@
 //====================================================================
 // MAPLE board[MARM01-BASE]
 // common functions
-#include "Maple_RTC.h"
-#include "Maple_I2C.h"
-#include "Maple_LCD.h"
 #include "Maple.h"
 #include "mbed.h"
 
@@ -132,77 +129,3 @@
     day     = bcd_to_int(bcd_day);
     return (day + (((month + 1) * 26 ) / 10) + year + year / 4 + century / 4 - century * 2 + 6) % 7;
 }
-
-// test
-// RTC read and raw print to LCD
-void RTC_to_LCD_raw() {
-    char d[17];
-
-    i2c_RTC_read(RTC_REG_CONTROL1, d, 16);
-    LCD_locate(0, 0);
-    for(int i = 0; i < 8; ++i) {
-        LCD_print_hex(d[i]);
-    }
-    LCD_locate(1, 0);
-    for(int i = 8; i < 16; ++i) {
-        LCD_print_hex(d[i]);
-    }
-}
-
-// test
-// LCD display 64 characters in 1st/2nd row and shift 
-//
-void LCD_display_all_char_shift() {
-        LCD_display_32char_shift(0x00);
-        LCD_display_32char_shift(0x40);
-        LCD_display_32char_shift(0x80);
-        LCD_display_32char_shift(0xC0);
-}
-
-static void LCD_display_32char_shift(char base) {
-    LCD_clear_display();                    // select 1st row and clear display
-    for(int i = 0; i < 32; ++i) {
-        LCD_print_char(base + i);           // write 32 characters
-    }
-    LCD_locate(1, 0);                       // select 2nd row
-    for(int i = 32; i < 64; ++i) {
-        LCD_print_char(base + i);           // write 32 characters
-    }
-    for(int i = 0; i < 24; ++i) {
-        LCD_cursor_or_display_shift(1, 0);  // shift right 24 times
-        wait_ms(1000);
-    }
-    for(int i = 0; i < 32; ++i) {
-        LCD_cursor_or_display_shift(1, 1);  // shift left 32 times
-        wait_ms(1000);
-    }
-    for(int i = 0; i < 8; ++i) {
-        LCD_cursor_or_display_shift(1, 0);  // shift right 8 times
-        wait_ms(1000);
-    }
-}
-
-// test
-// LCD display 16x2 characters with 1st and 2nd row 
-void LCD_display_all_char() { 
-    LCD_display_32char(0x00);
-    LCD_display_32char(0x20);
-    LCD_display_32char(0x40);
-    LCD_display_32char(0x60);
-    LCD_display_32char(0x80);
-    LCD_display_32char(0xa0);
-    LCD_display_32char(0xc0);
-    LCD_display_32char(0xe0);
-}
-
-static void LCD_display_32char(char base) {
-    LCD_clear_display();            // select 1st row and clear display
-    for(int i = 0; i < 16; ++i) {
-        LCD_print_char(base + i);   // write 1st-half 16 characters
-    }
-    LCD_locate(1, 0);               // select 2nd row
-    for(int i = 16; i < 32; ++i) {
-        LCD_print_char(base + i);   // write 2nd-half 16 characters
-    }
-    wait_ms(3000);
-}