Advertisement
pleasedontcode

Salut rev_01

Dec 6th, 2023
75
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: Salut
  13.     - Source Code compiled for: Arduino Pro Mini 5V
  14.     - Source Code created on: 2023-12-06 14:06:38
  15.     - Source Code generated by: Samuel
  16.  
  17. ********* Pleasedontcode.com **********/
  18.  
  19. /****** SYSTEM REQUIREMENTS *****/
  20. /****** SYSTEM REQUIREMENT 1 *****/
  21.     /* Turn off light */
  22. /****** END SYSTEM REQUIREMENTS *****/
  23.  
  24. /****** DEFINITION OF LIBRARIES *****/
  25. #include <Arduino.h>
  26. #include <SPI.h>
  27. #include <SdFat.h>
  28.  
  29. /****** FUNCTION PROTOTYPES *****/
  30. void setup(void);
  31. void loop(void);
  32.  
  33. /***** DEFINITION OF SPI PINS *****/
  34. const uint8_t Dezz_SDCardModule_SPI_PIN_MOSI_D11 = 11; // Add semicolon at the end
  35. const uint8_t Dezz_SDCardModule_SPI_PIN_MISO_D12 = 12; // Add semicolon at the end
  36. const uint8_t Dezz_SDCardModule_SPI_PIN_SCLK_D13 = 13; // Add semicolon at the end
  37. const uint8_t Dezz_SDCardModule_SPI_PIN_CS_D10 = 10; // Add semicolon at the end
  38.  
  39. /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
  40. SdFat sd;
  41. File file;
  42.  
  43. void setup(void)
  44. {
  45.     // put your setup code here, to run once:
  46.  
  47.     pinMode(Dezz_SDCardModule_SPI_PIN_CS_D10, OUTPUT);
  48.     // start the SPI library:
  49.     SPI.begin();
  50. }
  51.  
  52. void loop(void)
  53. {
  54.     // put your main code here, to run repeatedly:
  55.    
  56.     // Turn off the light
  57.     digitalWrite(Dezz_SDCardModule_SPI_PIN_CS_D10, LOW);
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement