From b707eed2ccab33aa5c008a84d4a74788b4b2e52d Mon Sep 17 00:00:00 2001 From: David Date: Mon, 11 Nov 2013 19:02:19 +1300 Subject: Added %o %b %c in printf(), started memory detection --- screen/console.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'screen/console.h') diff --git a/screen/console.h b/screen/console.h index 66a867a..f037592 100644 --- a/screen/console.h +++ b/screen/console.h @@ -19,6 +19,8 @@ #ifndef __CONSOLE_H #define __CONSOLE_H +#include + #define console_width 80 #define console_height 25 #define console_x_pos (console_pointer%(2*console_width)) @@ -32,28 +34,32 @@ #define COLOR_PURPLE 0x5 #define COLOR_GOLD 0x6 #define COLOR_BRIGHT_GREY 0x7 -#define COLOR_BRIGHT_GRAY 0x7 // Alias for grey vs gray #define COLOR_GRAY 0x8 -#define COLOR_GREY 0x8 // Alias for grey vs gray #define COLOR_BRIGHT_BLUE 0x9 #define COLOR_BRIGHT_GREEN 0xA -#define COLOR_LIME 0xA // Alias for lime vs bright green #define COLOR_AQUA 0xB #define COLOR_RED 0xC #define COLOR_PINK 0xD #define COLOR_YELLOW 0xE #define COLOR_WHITE 0xF +#define COLOR_BRIGHT_GRAY COLOR_BRIGHT_GREY // Alias for grey vs gray +#define COLOR_GREY COLOR_GRAY // Alias for grey vs gray +#define COLOR_LIME COLOR_BRIGHT_GREEN // Alias for lime vs bright green char* console_buffer; uint16_t console_pointer; uint8_t console_color; void console_init(); +void console_set_cursor_xy(uint8_t x,uint8_t y); void console_update_cursor(); void console_clear(); void console_set_colors(uint8_t fg, uint8_t bg); void console_set_color(uint8_t fg); -void console_print(char *string, ...); - +void console_print_char(const char c); +void console_print_string(const char *string); +void console_print(const char* format,...); +void console_print_num(uint32_t num, uint8_t base); +void console_scroll(); #endif \ No newline at end of file -- cgit v1.1