Advertisement
pleasedontcode

Scanner rev_38

Oct 29th, 2023
46
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: Scanner
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-10-29 14:54:13
  15.     - Source Code generated by: AlexWind
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <SoftwareSerial.h>
  21. #include <LiquidCrystal_I2C.h>
  22. #include <MicroNMEA.h>
  23.  
  24. /****** SYSTEM REQUIREMENT 1 *****/
  25. /* Reads NMEA 8bit data from GPS module. Reads hours */
  26. /* minutes, seconds and Display h, m, s on 6x 7seg */
  27. /* LED display. When mins and secs are 00 00, contact */
  28. /* closure for about 1 sec. */
  29.  
  30. /****** FUNCTION PROTOTYPES *****/
  31. void setup(void);
  32. void loop(void);
  33.  
  34. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  35. const uint8_t contactClosure_PIN_D2 = 2;
  36.  
  37. /***** DEFINITION OF Software Serial *****/
  38. const uint8_t gpsSerial_PIN_SERIAL_TX_A1 = A1;
  39. const uint8_t gpsSerial_PIN_SERIAL_RX_A0 = A0;
  40. SoftwareSerial gpsSerial(gpsSerial_PIN_SERIAL_RX_A0, gpsSerial_PIN_SERIAL_TX_A1);
  41.  
  42. void setup(void)
  43. {
  44.   // Set the contact closure pin as output
  45.   pinMode(contactClosure_PIN_D2, OUTPUT);
  46.  
  47.   // Initialize the software serial for GPS module
  48.   gpsSerial.begin(9600);
  49.  
  50.   // Add your setup code here, to run once:
  51. }
  52.  
  53. void loop(void)
  54. {
  55.   // Add your main code here, to run repeatedly:
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement