Quantcast
Channel: ARM Connected Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 3617

使用PYB Nano驱动DS3231

$
0
0
DS3231是常见的一种RTC模块,价格低,使用简单方便,带有闹钟。在PYB Nano上使用它也非常简单。   接线方式和连线图如下: DS3231 PYB Nano GND GND VCC 3V3 SDA Y0/PB9 SCL Y1/PB8   将DS3231库导入,就可以直接使用了。 >>> from DS3231 import DS3231>>> ds=DS3231(1) >>> #读取秒 >>>

Viewing all articles
Browse latest Browse all 3617

Trending Articles