Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kareltucek committed Oct 13, 2024
1 parent 8a644b5 commit 4bd115b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions device/src/dongle_leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
extern const struct pwm_dt_spec green_pwm_led;
extern const struct pwm_dt_spec blue_pwm_led;

#else
#include "stubs.h"
#endif // __DONGLE_LEDS_H__
6 changes: 0 additions & 6 deletions device/src/keyboard/oled/fonts/font_awesome_12.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ static const lv_font_fmt_txt_cmap_t cmaps[] =
}
};

void DebugFont() {
for (uint8_t i = 0; i < 5; i++) {
printk("Glyph %d: %d\n", i, glyph_dsc[i].bitmap_index);
}
}

/*--------------------
* ALL CUSTOM DATA
*--------------------*/
Expand Down
6 changes: 6 additions & 0 deletions device/src/keyboard/oled/fonts/font_awesome_12.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

// Typedefs:

/**
* Instructions to add a new glyph:
* - Generate a .c lv font file using instructions in fonts.h"
* - Add the glyph's data into the glyph_bitmap array in font_awesome_12.c
* - Add the metadata into font_awesome_12_data.h
* */

typedef enum {
#define GLYPH_DATA(INDEX0, INDEX1, NAME, ADVW, BOXW, BOXH, OFSX, OFSY) FontIcon_##NAME = 32+INDEX0,
Expand Down

0 comments on commit 4bd115b

Please sign in to comment.