diff --git a/.gitmodules b/.gitmodules index a89dd6c..b854bdc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "ds3231/i2c"] path = ds3231/i2c url = git@git.blackmark.me:avr/i2c.git +[submodule "ds3231/util"] + path = ds3231/util + url = git@git.blackmark.me:avr/util.git diff --git a/ds3231/ds3231 b/ds3231/ds3231 index 54b8917..11211be 160000 --- a/ds3231/ds3231 +++ b/ds3231/ds3231 @@ -1 +1 @@ -Subproject commit 54b8917705125bdea47f74e4c911650da5bb025f +Subproject commit 11211be9b9b823c73c20b5b419e3ff7b82b48e3e diff --git a/ds3231/ds3231.cppproj b/ds3231/ds3231.cppproj index 26e8f21..ad5d203 100644 --- a/ds3231/ds3231.cppproj +++ b/ds3231/ds3231.cppproj @@ -275,12 +275,19 @@ compile + + compile + + + compile + + diff --git a/ds3231/i2c b/ds3231/i2c index ff131d9..8af5afd 160000 --- a/ds3231/i2c +++ b/ds3231/i2c @@ -1 +1 @@ -Subproject commit ff131d92a1b8e92efc2ae24306d7b7cac3cfb28a +Subproject commit 8af5afd00d1cba9211e4fe9be1df44a14b7973a1 diff --git a/ds3231/main.cpp b/ds3231/main.cpp index 774d247..9f4e982 100644 --- a/ds3231/main.cpp +++ b/ds3231/main.cpp @@ -140,6 +140,16 @@ int main() cSerial.init(); sei(); + rtc::DateTime date; + date.year = 2020; + date.month = 5; + date.day = 16; + date.hour = 17; + date.minute = 24; + date.second = 10; + + ds3231.setDateTime(date); + setup(); while (true) { diff --git a/ds3231/type b/ds3231/type index 65d8928..01fad90 160000 --- a/ds3231/type +++ b/ds3231/type @@ -1 +1 @@ -Subproject commit 65d8928ff458aceb74ac44f214427f3ea8eaefc1 +Subproject commit 01fad9046ea3125e47ff3ed0e97f098759265f3e diff --git a/ds3231/util b/ds3231/util new file mode 160000 index 0000000..d045bbf --- /dev/null +++ b/ds3231/util @@ -0,0 +1 @@ +Subproject commit d045bbffc3338a747bafc58db444f1aa70efd221