Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
TextStar.h
00001 /* mbed TextStar serial LCD Library 00002 * Copyright (c) 2009-2010 Paul Griffith 00003 * Released under the MIT License: http://mbed.org/license/mit 00004 * 00005 * Last edit: 10 Jan 2010 00006 * 00007 * TextStar CW-LCD-02 16x2 serial LCD module 00008 * Cat's Whisker Technologies, http://www.cats-whisker.com 00009 */ 00010 00011 #include "mbed.h" 00012 00013 #ifndef MBED_TEXTSTAR_H 00014 #define MBED_TEXTSTAR_H 00015 00016 class TextStar : public Serial { 00017 public: 00018 00019 TextStar(PinName tx, PinName rx); 00020 00021 //printf(), putc(), baud() etc are inherited from Serial 00022 00023 //basic commands common to all mbed Text Display libraries 00024 00025 void cls(); 00026 void locate(int column, int row); 00027 void foreground(int colour); 00028 void background(int colour); 00029 00030 //TextStar specific commands 00031 00032 void reset(int autoblank =1, int autoscroll =1); 00033 void left(); 00034 void right(); 00035 void down(); 00036 void up(); 00037 void home(); 00038 void crlf(); 00039 void del(); 00040 void set_cursor(int style); 00041 void window(int line); 00042 void scroll_up(); 00043 void scroll_down(); 00044 void bar_graph(int capped, int length, int percentage); 00045 void custom_char(int num, char *bitmap); 00046 void version(); 00047 void send_version(); 00048 void send_keys(); 00049 00050 protected: 00051 00052 int _autoblank, _autoscroll; 00053 00054 }; 00055 00056 #endif
Generated on Sun Jul 24 2022 19:15:07 by
1.7.2