Toaster.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ////////// Definiere Header //////////
  2. #ifndef TOASTER_H
  3. #define TOASTER_H
  4. ////////// Inkludierte Header-Dateien //////////
  5. #include <Arduino.h>
  6. #include "DS18B20.h"
  7. #include "LiquidCrystal.h"
  8. ////////// Definierte Symbole //////////
  9. #define MAGNET_PIN 11
  10. #define TEMPSENSOR_PIN 6
  11. #define HEATER_DUTYCYCLE_PIN A1
  12. #define HEATER_PIN 3
  13. #define LED_PIN 5
  14. #define STOP_PIN 2
  15. #define TIMER_PIN A0
  16. #define MAX_TIME 360000
  17. #define BAUDRATE 9600
  18. ////////// Definierte Funktionen //////////
  19. /**
  20. * @brief Function to print temperature, actual time and max time on LC-Display.
  21. *
  22. * @param temp_in_c (float) temperature in degree celsius
  23. * @param t_in_s (int) actual time since start.
  24. * @param tmax_in_s (int) max time after program ends
  25. */
  26. void lcd(float temp_in_c, int t_in_s, int tmax_in_s);
  27. /**
  28. * @brief Get actual temperature.
  29. *
  30. * @return (float) temperature in degree celsius
  31. */
  32. float get_temp(void);
  33. ////////// Header Ende //////////
  34. #endif