Skip to content

Commit

Permalink
Refactor for NuttX
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jun 5, 2023
1 parent 7ea4736 commit d6dcf20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified feature-phone.wasm
Binary file not shown.
5 changes: 2 additions & 3 deletions feature-phone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ pub export fn lv_demo_widgets() void {
///////////////////////////////////////////////////////////////////////////////
// Create Widgets

/// Create the LVGL Widgets that will be rendered on the display. Calls the
/// LVGL API that has been wrapped in Zig. Based on
/// https://docs.lvgl.io/master/widgets/label.html?highlight=lv_label_create#line-wrap-recoloring-and-scrolling
/// Create the LVGL Widgets that will be rendered on the display
fn createWidgets() !void {
debug("createWidgets: start", .{});
defer debug("createWidgets: end", .{});
Expand Down Expand Up @@ -191,6 +189,7 @@ export fn eventHandler(e: ?*c.lv_event_t) void {
const text = @ptrCast([*:0]u8, data);
const span = std.mem.span(text);

// Handle the identified button...
if (std.mem.eql(u8, span, "Call")) {
// If Call is clicked, call the number
const call_number = display_text[0..len :0];
Expand Down

0 comments on commit d6dcf20

Please sign in to comment.