Skip to content

Commit

Permalink
update rtc example with pin config refactor (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite authored Dec 19, 2024
1 parent b07430e commit 5180d6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/raspberrypi/rp2xxx/src/rp2040_only/rtc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ fn rtc_isr() callconv(.C) void {
critical_section.exit();
}

const pins = pin_config.pins();

pub fn main() !void {
const pins = pin_config.apply();
pin_config.apply();

// Configure initial datetime for RTC
rp2xxx.rtc.set_datetime(.{
Expand Down

0 comments on commit 5180d6b

Please sign in to comment.