LoginSignup
1
0

More than 5 years have passed since last update.

DS3232RTCライブラリのサンプルSetSerialで「error: 'tmElements_t' has not been declared」の対処方法

Posted at

RTCモジュール:DS3231のライブラリ。
http://github.com/JChristensen/DS3232RTC
サンプルコンパイル時にエラーが出ます。

①streaming
ここのDownload The latest version of Streaming is available at Streaming5.zip.
のリンクから入れる。

②error: 'tmElements_t' has not been declared
はTimeLib.hを追加したら解決。
きっと、Arduino本体のソースが変わったのかな。

#include <DS3232RTC.h>        //http://github.com/JChristensen/DS3232RTC
#include <Streaming.h>        //http://arduiniana.org/libraries/streaming/
#include <Time.h>             //http://playground.arduino.cc/Code/Time
#include <Wire.h>             //http://arduino.cc/en/Reference/Wire

#include <DS3232RTC.h>        //http://github.com/JChristensen/DS3232RTC
#include <Streaming.h>        //http://arduiniana.org/libraries/streaming/
#include <Time.h>             //http://playground.arduino.cc/Code/Time
#include <TimeLib.h>
#include <Wire.h>             //http://arduino.cc/en/Reference/Wire
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0