README.LED_display 952 B

123456789101112131415161718192021222324252627
  1. LED display internal API
  2. =======================================
  3. This README describes the LED display API.
  4. The API is defined by the include file include/led-display.h
  5. The first step in to define CONFIG_CMD_DISPLAY in the board config file.
  6. Then you need to provide the following functions to access LED display:
  7. void display_set(int cmd);
  8. This function should control the state of the LED display. Argument is
  9. an ORed combination of the following values:
  10. DISPLAY_CLEAR -- clear the display
  11. DISPLAY_HOME -- set the position to the beginning of display
  12. DISPLAY_MARK -- enable mark (decimal point), if implemented
  13. int display_putc(char c);
  14. This function should display it's parameter on the LED display in the
  15. current position. Returns the displayed character on success or -1 in
  16. case of failure.
  17. With this functions defined 'display' command will display it's
  18. arguments on the LED display (or clear the display if called without
  19. arguments).