Instructional Guide; DS3231 Real-Time Clock; micro:bit v2; micropython v3

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
burksfamly
 
Posts: 36
Joined: Fri Jan 06, 2017 10:20 pm

Instructional Guide; DS3231 Real-Time Clock; micro:bit v2; micropython v3

Post by burksfamly »

I have attached an instructional guide for using the DS3231 real-time clock with the micro:bit v2 and
micropython v3 development environment. The guide covers many topics and instructional objectives
for beginners including:

- how to layout, create, and use a very simple class structure
- how to use the I2C bus for I2C devices connected to the micro:bit
- how to use a microchip datasheet and communicate with the microchip
- bitwise logical operations and byte and bit manipulation
- binary-coded decimals and two's compliment encoding of byte structures
- memoryview and data manipulation
- how to read and write data bytes to/from microchip registers
- how to exploit the features of the ds3231 RTC

The self-contained instructional micropython file is attached.
Attachments
DS3231 RTC microbit micropython guide.py
(105.03 KiB) Downloaded 5 times

Post Reply
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”