Add RTC clock sample using seeed_xiao_expansion_board and SSD1306 display #87845
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new sample application demonstrating how to use the Zephyr RTC API together with an SSD1306 OLED display to implement a simple real-time clock (RTC). The sample is designed to run on the xiao_ble board with the seeed_xiao_expansion_board shield.
Key features:
Initializes and sets current date/time using rtc driver.
Periodically reads time from RTC.
Displays updated time on an SSD1306 OLED using the character framebuffer (cfb) driver.
Runs without console output — output is only shown on the display.
Demo:

Hardware requirements:
XIAO BLE board
Seeed XIAO Expansion Board with SSD1306 (I²C interface)
Tested on:
xiao_ble + seeed_xiao_expansion_board
Tags: rtc, display, cfb, ssd1306, samples