![]() |
VOOZH | about |
dotnet add package nanoFramework.Iot.Device.Ds1302 --version 1.0.864
NuGet\Install-Package nanoFramework.Iot.Device.Ds1302 -Version 1.0.864
<PackageReference Include="nanoFramework.Iot.Device.Ds1302" Version="1.0.864" />
<PackageVersion Include="nanoFramework.Iot.Device.Ds1302" Version="1.0.864" />Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Ds1302" />Project file
paket add nanoFramework.Iot.Device.Ds1302 --version 1.0.864
#r "nuget: nanoFramework.Iot.Device.Ds1302, 1.0.864"
#:package nanoFramework.Iot.Device.Ds1302@1.0.864
#addin nuget:?package=nanoFramework.Iot.Device.Ds1302&version=1.0.864Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Ds1302&version=1.0.864Install as a Cake Tool
The DS1302 serial real-time clock (RTC) is a lowpower, full binary-coded decimal (BCD) clock/calendar.
Connect sensor to the microcontroller.
static void GetTimeFromDs1302()
{
GpioController controller = new GpioController(PinNumberingScheme.Logical);
using Ds1302 rtc = new(13, 12, 14, controller);
if (rtc.IsHalted())
{
Console.WriteLine("RTC is halted!");
}
else
{
rtc.Halt();
Console.WriteLine("RTC was halted now!");
}
var currentTime = new DateTime(2022, 8, 5, 18, 31, 0);
Console.WriteLine(currentTime.ToString());
rtc.DateTime = currentTime;
while (true)
{
// read time
DateTime dt = rtc.DateTime;
Console.WriteLine(dt.ToString("yyyy/MM/dd HH:mm:ss"));
Thread.Sleep(5000);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net net is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.85 | 52 | 6/1/2026 |
| 2.0.0-preview.80 | 53 | 5/27/2026 |
| 2.0.0-preview.62 | 67 | 5/13/2026 |
| 2.0.0-preview.49 | 52 | 5/4/2026 |
| 2.0.0-preview.45 | 60 | 4/29/2026 |
| 2.0.0-preview.37 | 59 | 4/22/2026 |
| 2.0.0-preview.32 | 53 | 4/20/2026 |
| 2.0.0-preview.16 | 67 | 3/10/2026 |
| 1.0.864 | 326 | 11/10/2025 |
| 1.0.840 | 260 | 10/2/2025 |
| 1.0.802 | 329 | 4/2/2025 |
| 1.0.797 | 294 | 4/2/2025 |
| 1.0.785 | 307 | 3/11/2025 |
| 1.0.755 | 248 | 2/26/2025 |
| 1.0.708 | 247 | 2/4/2025 |
| 1.0.705 | 239 | 2/4/2025 |
| 1.0.688 | 240 | 1/31/2025 |
| 1.0.670 | 221 | 1/13/2025 |
| 1.0.629 | 254 | 12/16/2024 |
| 1.0.606 | 247 | 10/23/2024 |