Advertisement
LiborV

Untitled

Dec 6th, 2019
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. Arduino: 1.8.10 (Windows 10), Vývojová deska: "Arduino Nano, ATmega328P"
  2.  
  3. garden:4:20: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
  4.  
  5. DS3231 rtc(SDA,SCL);
  6.  
  7. ^
  8.  
  9. In file included from C:\Users\Libor\Documents\Arduino\garden\garden.ino:3:0:
  10.  
  11. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate: DS3231::DS3231()
  12.  
  13. DS3231();
  14.  
  15. ^~~~~~
  16.  
  17. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate expects 0 arguments, 2 provided
  18.  
  19. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)
  20.  
  21. class DS3231 {
  22.  
  23. ^~~~~~
  24.  
  25. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
  26.  
  27. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)
  28.  
  29. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
  30.  
  31. garden:5:1: error: 'Time' does not name a type; did you mean 'Wire'?
  32.  
  33. Time t;
  34.  
  35. ^~~~
  36.  
  37. Wire
  38.  
  39. C:\Users\Libor\Documents\Arduino\garden\garden.ino: In function 'void setup()':
  40.  
  41. garden:36:7: error: 'class DS3231' has no member named 'begin'
  42.  
  43. rtc.begin();
  44.  
  45. ^~~~~
  46.  
  47. C:\Users\Libor\Documents\Arduino\garden\garden.ino: In function 'void loop()':
  48.  
  49. garden:54:3: error: 't' was not declared in this scope
  50.  
  51. t = rtc.getA1Time();
  52.  
  53. ^
  54.  
  55. garden:54:21: error: no matching function for call to 'DS3231::getA1Time()'
  56.  
  57. t = rtc.getA1Time();
  58.  
  59. ^
  60.  
  61. In file included from C:\Users\Libor\Documents\Arduino\garden\garden.ino:3:0:
  62.  
  63. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:109:8: note: candidate: void DS3231::getA1Time(byte&, byte&, byte&, byte&, byte&, bool&, bool&, bool&)
  64.  
  65. void getA1Time(byte& A1Day, byte& A1Hour, byte& A1Minute, byte& A1Second, byte& AlarmBits, bool& A1Dy, bool& A1h12, bool& A1PM);
  66.  
  67. ^~~~~~~~~
  68.  
  69. C:\Users\Libor\Documents\Arduino\libraries\DS3231/DS3231.h:109:8: note: candidate expects 8 arguments, 0 provided
  70.  
  71. Byly nalezené násobné knihovny "Wire.h"
  72. Použitý: C:\Program
  73. Byly nalezené násobné knihovny "DS3231.h"
  74. Použitý: C:\Users\Libor\Documents\Arduino\libraries\DS3231
  75. exit status 1
  76. no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
  77.  
  78. Táto zpráva by měla mít víc informacií v
  79. "Zobrazení podrobného výstupu při kompilaci"
  80. podle zapnuté volby v Soubor -> Nastavení.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement