Skip to content

Instantly share code, notes, and snippets.

View chaosgoo's full-sized avatar

Goo chaosgoo

  • 11:43 (UTC +08:00)
View GitHub Profile
@chaosgoo
chaosgoo / index.d.ts
Created April 9, 2024 08:05
Add Open Harmony support to spdlog.
export const spdlog_example: () => void;
@chaosgoo
chaosgoo / ft_port_fs.cpp
Created January 7, 2022 12:32
lvgl8_1_1_with_freetype2_11_1_on_esp32pico
#include "FS.h"
#include "SD.h"
extern "C" {
typedef void lvbe_FILE;
lvbe_FILE *lvbe_fopen(const char *filename, const char *mode) {
File f = SD.open(filename, mode);
if (f) {
File *f_ptr = new File(f); // copy to dynamic object
@chaosgoo
chaosgoo / lv_example_freetype_1.c
Last active August 3, 2022 14:20
lvgl动态字体字重修改
#include "../../lv_examples.h"
#if LV_USE_FREETYPE && LV_BUILD_EXAMPLES
/**
* Load a font with FreeType
*/
void lv_example_freetype_1(void)
{
/*Create a font*/
static lv_ft_info_t info;
@chaosgoo
chaosgoo / Rectangle.cpp
Last active January 16, 2021 19:42
Tiny-Monitor interploter
#include "Rectangle.h"
Rectangle::Rectangle() {
_x = 0;
_y = 0;
_width = 0;
_height = 0;
}
Rectangle::Rectangle(int xPos, int yPos, int width, int height) {
_x = xPos;