Advertisement
pleasedontcode

GPSTime rev_13

Oct 29th, 2023
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********* Pleasedontcode.com **********
  2.  
  3.     Pleasedontcode thanks you for automatic code generation! Enjoy your code!
  4.  
  5.     - Terms and Conditions:
  6.     You have a non-exclusive, revocable, worldwide, royalty-free license
  7.     for personal and commercial use. Attribution is optional; modifications
  8.     are allowed, but you're responsible for code maintenance. We're not
  9.     liable for any loss or damage. For full terms,
  10.     please visit pleasedontcode.com/termsandconditions.
  11.  
  12.     - Project: GPSTime
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-10-29 13:32:45
  15.     - Source Code generated by: Francesco Alessandro
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <Wire.h>
  21. #include <SoftwareSerial.h>
  22. #include <LiquidCrystal_I2C.h>
  23. #include <MicroNMEA.h>
  24.  
  25. LiquidCrystal_I2C lcd(0x27, 20, 4);
  26.  
  27. void setup()
  28. {
  29.   lcd.begin(20, 4);
  30.   lcd.backlight();
  31.   Serial.begin(9600);
  32. }
  33.  
  34. void loop()
  35. {
  36.   if (Serial.available()) {
  37.     delay(100);
  38.     lcd.clear();
  39.     while (Serial.available() > 0) {
  40.       lcd.write(Serial.read());
  41.     }
  42.   }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement