Skip to content

nrf5x: fix micro:bit v2 display COL4 pin - #1037

Merged
mattnite merged 1 commit into
ZigEmbeddedGroup:mainfrom
lubitelpospat:fix-microbit-v2-display-col4
Sep 13, 2026
Merged

nrf5x: fix micro:bit v2 display COL4 pin#1037
mattnite merged 1 commit into
ZigEmbeddedGroup:mainfrom
lubitelpospat:fix-microbit-v2-display-col4

Conversation

@lubitelpospat

Copy link
Copy Markdown
Contributor

Hello folks!
This bug was preventing a simple heart example code from rendering correctly. Tested with this code:

const microzig = @import("microzig");

const nrf = microzig.hal;
const time = nrf.time;
const microbit = microzig.board;

pub const panic = microzig.panic;
pub const std_options = microzig.std_options(.{});

comptime {
    _ = microzig.export_startup();
}

const heart: [5][5]u1 = .{
    .{ 0, 1, 0, 1, 0 },
    .{ 1, 1, 1, 1, 1 },
    .{ 1, 1, 1, 1, 1 },
    .{ 0, 1, 1, 1, 0 },
    .{ 0, 0, 1, 0, 0 },
};

pub fn main() !void {
    microbit.display.init();

    while (true) {
        microbit.display.render(heart, .from_ms(1000));
        time.sleep_ms(1000);
    }
}

@mattnite mattnite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

I double checked with the information at https://tech.microbit.org/hardware/schematic/#v2-pinmap

@mattnite
mattnite merged commit b25de88 into ZigEmbeddedGroup:main Sep 13, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants