AVR ISP adapter (avr109/910 compatible, using ATmega16)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
963 B

  1. #ifndef DISPLAY_H_
  2. #define DISPLAY_H_
  3. #include <stdint.h>
  4. /* *********************************************************************** */
  5. typedef enum display_mode_e {
  6. DISPLAY_MODE_OFF, /* disable display */
  7. DISPLAY_MODE_RUN_ANIM, /* show RUN animation */
  8. DISPLAY_MODE_RUN_ANIM_LOOP, /* change last char of RUN animation */
  9. DISPLAY_MODE_STATIC, /* show first 4 chars */
  10. DISPLAY_MODE_SCROLL, /* scroll through buffer */
  11. DISPLAY_MODE_SCROLL_ONCE, /* scroll once, then switch to RUN_ANIM */
  12. } display_mode_t;
  13. /* *********************************************************************** */
  14. void display_show_string (const char * p_string, uint8_t append);
  15. void display_show_hex (uint8_t value, uint8_t append);
  16. void display_set_mode (display_mode_t mode);
  17. void display_update (void);
  18. /* *********************************************************************** */
  19. #endif /* DISPLAY_H_ */