Notes
Notes
========================================
// Select font
// A full list of u8g2 fonts can be found here:
// https://github.com/olikraus/u8g2/wiki/fntlistall
// ...and here are the ones available in FZ (currently: all of them):
// grep -P '.*u8g2.*\[[0-9]*\]' lib/u8g2/u8g2_fonts.c | sed 's/.*\(u8g2_.*\)\
[.*/\1/'
//
#if 0 //! Extra fonts is just too memory hungry
#include <u8g2.h>
void setFont (Canvas* const canvas, const uint8_t* font)
{
u8g2_SetFontMode(&canvas->fb, 1); // no idea - but canvas.c does it <shrug>
u8g2_SetFont(&canvas->fb, font);
}
#endif
/*
# else
int end = idx ? idx : aw;
for (int a = ACC_1; a < ACC_N; a++) {
canvas_draw_dot(canvas, x,y[a]+v[a][idx]);
if (state->apause) {
for (int i = 1; i < end; i++)
canvas_draw_line(canvas, x+i,y[a]+v[a][i-1] ,
x+i,y[a]+v[a][i]);
} else {
for (int i = 1; i < end; i++)
canvas_draw_line(canvas, x+i,y[a]+v[a][i-1] ,
x+i,y[a]+v[a][i]);
for (int i = end+10; i < aw -cnt; i++)
canvas_draw_line(canvas, x+i,y[a]+v[a][i-1] ,
x+i,y[a]+v[a][i]);
}
}
// Wipe bar
if (end < aw) canvas_draw_line(canvas, x+end,y[0],
x+end,y[2]+ah-1);
if (++end < aw) canvas_draw_line(canvas, x+end,y[0],
x+end,y[2]+ah-1);
if (++end < aw) canvas_draw_line(canvas, x+end,y[0],
x+end,y[2]+ah-1);
# endif