Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. #include <SPI.h>
  3. #include <SD.h>
  4. #include <Wire.h>
  5. #include <ds3231.h>
  6. #include <rtc_ds3231.h>
  7. #include <StandardCplusplus.h>
  8. #include <vector>
  9. #include <ArduinoJson\ArduinoJson.h>
  10. using namespace std;
  11. LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
  12. File myFile;
  13. const int chipSelect = 4;
  14.  
  15. char* cropName;
  16.  
  17. void setup()
  18. {
  19.     SD.begin(53);
  20.     lcd.begin(16, 2);
  21.     Serial.begin(9600);
  22.  
  23.     //If there is no folder for this crop
  24.     SD.mkdir("newcrop");
  25.     SD.open("newcrop");
  26.     lcd.print(cropName);
  27. }
  28.  
  29. void loop()
  30. {
  31.  
  32.     /* add main program code here */
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement