1*4882a593SmuzhiyunLED display internal API 2*4882a593Smuzhiyun======================================= 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunThis README describes the LED display API. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunThe API is defined by the include file include/led-display.h 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunThe first step in to define CONFIG_CMD_DISPLAY in the board config file. 9*4882a593SmuzhiyunThen you need to provide the following functions to access LED display: 10*4882a593Smuzhiyun 11*4882a593Smuzhiyunvoid display_set(int cmd); 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunThis function should control the state of the LED display. Argument is 14*4882a593Smuzhiyunan ORed combination of the following values: 15*4882a593Smuzhiyun DISPLAY_CLEAR -- clear the display 16*4882a593Smuzhiyun DISPLAY_HOME -- set the position to the beginning of display 17*4882a593Smuzhiyun 18*4882a593Smuzhiyunint display_putc(char c); 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunThis function should display it's parameter on the LED display in the 21*4882a593Smuzhiyuncurrent position. Returns the displayed character on success or -1 in 22*4882a593Smuzhiyuncase of failure. 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunWith this functions defined 'display' command will display it's 25*4882a593Smuzhiyunarguments on the LED display (or clear the display if called without 26*4882a593Smuzhiyunarguments). 27