PowerTGS440

tools.h

Apr 15th, 2021
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.50 KB | None | 0 0
  1.  
  2. // ---------------------------------------------------------------------------------------------
  3. // --- drukuje poziomą linię o zadanej długości ------------------------------------------------
  4. // ---------------------------------------------------------------------------------------------
  5. //
  6. void PrintLine(byte lenght)
  7. {
  8.     Serial.printf("\n");  
  9.     for(byte start = 0; start < lenght; start ++ ) Serial.write("-");
  10. }
  11. //
  12. // ---------------------------------------------------------------------------------------------
  13. // --- pokazuje wiadomosc (na wejsciu 3 x char) ------------------------------------------------
  14. // ---------------------------------------------------------------------------------------------
  15. //
  16. void PrintMSG(const char * wiadomosc_1, const char * wiadomosc_2, const char * wiadomosc_3)    
  17. {                                                                                                              
  18.     Serial.printf("\n[%s] [%s] %s", wiadomosc_1, wiadomosc_2, wiadomosc_3);                                    
  19. }  
  20. //
  21. // ---------------------------------------------------------------------------------------------
  22. // --- pokazuje wiadomosc (na wejsciu 3 x char) ------------------------------------------------
  23. // ---------------------------------------------------------------------------------------------
  24. //
  25. void PrintEND()    
  26. {                                                                                                              
  27.     Serial.printf("\n");
  28. }  
Advertisement
Add Comment
Please, Sign In to add comment