This commit is contained in:
cuu 2022-02-13 13:40:31 +08:00
parent 24f1649b90
commit c1215b0f1d
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,9 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <freetype2/ft2build.h>
#include <freetype/freetype.h>
///raspberry pi CM3
#define BCM_GPIO_28 28

View File

@ -432,8 +432,10 @@ uint8_t print_lines_ft(CONFIG*cfg) {
uint8_t lastidx,lastw,lastj;
uint8_t row;
uint16_t line_bits;
int8_t left = ser_cache.idx;
uint8_t rv;
line_bits=cfg->margin.width;
dot_line_idx = line_bits/8;
@ -475,7 +477,7 @@ uint8_t print_lines_ft(CONFIG*cfg) {
if(w > 0 && (w%8) == 0) j++;
if(dot_line_bitsidx > 7 ){
dot_line_idx++;
dot_line_bitxidx=0;
dot_line_bitsidx=0;
}
unsigned char p =