Commit Graph

30 Commits (3597c7407ef3bc3b9742372e85f5c139b948ea76)

Author SHA1 Message Date
Diego Barrios Romero 3597c7407e Finish updating to embedded-hal 1.0.0 2025-01-02 08:35:42 +01:00
kirbylife fd6a145825 fix set_day method
The method receives in decimal the value to be set as the day of the month, but the ds3231 module expects it in bcd format.  
Using the 'write_register_decimal' method, can be written in the correct format.
2023-07-17 13:50:17 +02:00
Diego Barrios Romero 774b3cf527 Update to rtcc 0.3 2022-02-20 10:17:55 +01:00
Rafael Bachmann 1930de500d Fix clippy warnings 2021-10-26 11:18:03 +02:00
Diego Barrios Romero 9c6fe164b8 Fix returning error if the device state is invalid and leads to invalid date/time values 2021-05-22 23:09:10 +02:00
James Munns b8ab37f57a Correct day bounds 2021-02-22 10:48:56 +01:00
Diego Barrios Romero f146d1d26e Use Rust edition 2018 2020-07-10 22:24:29 +02:00
Diego Barrios Romero 08d5192367 Extract method for H24 conversion 2020-05-02 12:45:05 +02:00
Diego Barrios Romero 3c8d378d6f Implement Rtcc trait 2020-05-02 11:36:42 +02:00
Diego Barrios Romero 49f72014a7 Remove unnecessary statements 2019-05-16 19:24:13 +02:00
Diego Barrios Romero af20f0321c Code formatting 2019-05-16 19:18:07 +02:00
Diego Barrios Romero 0ef5cec642 Use embedded_hal::digital::v2::OutputPin traits 2019-05-16 18:50:11 +02:00
Diego Barrios Romero 7d7008a583 Make type conversions explicit 2018-11-16 17:59:17 +01:00
Diego Barrios Romero f971786c0d Pass variablue per value 2018-11-16 17:50:06 +01:00
Diego Barrios Romero 4674d06546 Make types copyable 2018-11-16 17:47:48 +01:00
Diego Barrios Romero 1465d116ab Extract function to convert Hours to a register value 2018-11-03 07:55:39 +01:00
Diego Barrios Romero 4675e902ad Move conversion function up for reuse 2018-11-03 07:54:47 +01:00
Diego Barrios Romero 8459963f45 Add function to set the complete datetime at once 2018-10-28 19:36:25 +01:00
Diego Barrios Romero 12dca9f499 Add support for reading the complete date/time at once 2018-10-28 19:16:36 +01:00
Diego Barrios Romero 984aa837d4 Extract year conversion 2018-10-28 18:18:22 +01:00
Diego Barrios Romero e4ab20df20 Extract hour conversion 2018-10-28 18:17:05 +01:00
Diego Barrios Romero 16c4b46843 Generalize array reading and writing 2018-10-28 18:04:34 +01:00
Diego Barrios Romero ccca20aa4a Add functions to get/set the year 2018-10-28 17:28:55 +01:00
Diego Barrios Romero 2cf7855293 Add function to get/set the month 2018-10-28 15:44:17 +01:00
Diego Barrios Romero ba5213adf2 Add functions to set/get the day of the month 2018-10-28 13:32:51 +01:00
Diego Barrios Romero 85c1b6189a Add functions to set/get the week day 2018-10-28 13:28:11 +01:00
Diego Barrios Romero b9610b6e73 Add methods to get/set the hours 2018-10-28 12:46:12 +01:00
Diego Barrios Romero c1b02cb3c0 Add functions to get/set the minutes. 2018-10-28 12:27:40 +01:00
Diego Barrios Romero 4aa34d8ab4 Remove unnecessary directive 2018-10-28 12:09:48 +01:00
Diego Barrios Romero 258a172356 Restructure ds323x module 2018-10-28 11:57:31 +01:00