_DISPLAY_func.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //_DISPLAY_func.h
  2. /* #if defined(HAS_TFT_ILI9163C)
  3. delay(LCDtim);
  4. DISPLAY_DEV.setCursor(0,60);
  5. DISPLAY_DEV.print(LCDarray1); DISPLAY_DEV.print(" "); DISPLAY_DEV.print(LCDarray2);
  6. #endif
  7. */
  8. //void _DISPLAY_print
  9. void DISPLAY__print_ANY(DISPLAY_T_ARDUINO_ATTR_ARRAY_T* DISPLAY_T_ARDUINO_ATTR_ARRAY_A ,
  10. DISPLAY_PHYSICAL_CHAR_T &DISPLAY_PHYSICAL_CHAR_A,
  11. DISPLAY_pos_seq_T DISPLAY_pos_seq_A,
  12. DISPLAY_array16_T DISPLAY_array16_A){
  13. Serial.print("#20 DsplY:[ "); Serial.print(DISPLAY_PHYSICAL_CHAR_A.DISPLAY_CURSOR_Y_CHARS_A); //[ARDUINO_ATTR_ARRAY_S_INDEX]
  14. Serial.print("] # MaxY:["); Serial.print(DISPLAY_PHYSICAL_CHAR_A.DISPLAY_PHYSICAL_Y_CHARS_A); //[ARDUINO_ATTR_ARRAY_S_INDEX]
  15. Serial.println("] ");
  16. #if defined(HAS_TFT_ILI9163C)
  17. Serial.print(" [HAS_TFT_ILI9163C] ");
  18. #endif
  19. #if defined(DEBUG)
  20. Serial.print(" [DEBUG] ");
  21. #endif
  22. Serial.println("] ");
  23. //todo position current
  24. //todo positions max
  25. #if defined(HAS_TFT_ILI9163C)
  26. DISPLAY_DEV_CTRL__println(DISPLAY_PHYSICAL_CHAR_A, DISPLAY_array16_A) ;
  27. #else
  28. Serial.println(DISPLAY_array16_A);
  29. #endif
  30. }
  31. void DISPLAY__print_IMMEDIATE(
  32. DISPLAY_T_ARDUINO_ATTR_ARRAY_T* DISPLAY_T_ARDUINO_ATTR_ARRAY_A,
  33. DISPLAY_PHYSICAL_CHAR_T &DISPLAY_PHYSICAL_CHAR_A,
  34. DISPLAY_pos_seq_T DISPLAY_pos_seq_A,
  35. DISPLAY_array16_T DISPLAY_array16_A,
  36. DISPLAY_TARGET_T DISPLAY_TARGET_A) {
  37. if(DISPLAY_TARGET_A | DISPLAY_TARGET_ANY){
  38. DISPLAY__print_ANY(DISPLAY_T_ARDUINO_ATTR_ARRAY_A, DISPLAY_PHYSICAL_CHAR_A, DISPLAY_pos_seq_A, DISPLAY_array16_A);
  39. }
  40. }
  41. void DISPLAY__print(
  42. DISPLAY_T* DISPLAY_A ,
  43. DISPLAY_T_ARDUINO_ATTR_ARRAY_T* DISPLAY_T_ARDUINO_ATTR_ARRAY_A ,
  44. DISPLAY_PHYSICAL_CHAR_T &DISPLAY_PHYSICAL_CHAR_A,
  45. DISPLAY_pos_seq_T DISPLAY_pos_seq_A,
  46. DISPLAY_array16_T DISPLAY_array16_A,
  47. DISPLAY_TARGET_T DISPLAY_TARGET_A,
  48. time_seq_id_T time_seq_id_A,
  49. time_min_run_T time_min_run_A
  50. )
  51. {
  52. if(DISPLAY_pos_seq_A | DISPLAY_pos_seq_A_IMMEDIATE){
  53. DISPLAY__print_IMMEDIATE(DISPLAY_T_ARDUINO_ATTR_ARRAY_A, DISPLAY_PHYSICAL_CHAR_A, DISPLAY_pos_seq_A, DISPLAY_array16_A, DISPLAY_TARGET_A);
  54. // Serial.print("#28 running _Slave_Ports_ttl_decrement = ");
  55. }
  56. }