Skip to content

Instantly share code, notes, and snippets.

View stolk's full-sized avatar

Bram Stolk stolk

  • Game Studio Abraham Stolk Inc.
  • Vancouver
View GitHub Profile
[13:14:32.178] - EFUSE_CFG
[13:14:32.180] - BOOTHEADER_GROUP0_CFG
[13:14:32.181] - BOOTHEADER_GROUP1_CFG
[13:14:32.201] - Create bootheader using /home/stolk/devcube/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[13:14:32.202] - Updating data according to </home/stolk/devcube/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP0_CFG]>
[13:14:32.210] - Created file len:352
[13:14:32.215] - Create bootheader using /home/stolk/devcube/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[13:14:32.216] - Updating data according to </home/stolk/devcube/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP1_CFG]>
[13:14:32.222] - Created file len:352
[13:14:32.224] - Create efuse using /home/stolk/devcube/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
dynamic memory init success,heap size = 26 Kbyte
C906 start...
mtimer clk:1000000
linux load start...
len:0x003942fc
vm linux load done!
dtb load done!
opensbi load done!
load time: 462996 us
#define HT16K33_CMD_BLINK 0x80
#define HT16K33_CMD_BRIGHTNESS 0xE0
enum blink_values
{
HT16K33_BLINK_NONE=0,
HT16K33_BLINK_500MS,
HT16K33_BLINK_1000MS,
HT16K33_BLINK_2000MS
};
@stolk
stolk / bluepaint.c
Created June 21, 2023 04:18
Blue Paint
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <assert.h>
int blw;
int blh;
uint8_t* blu;
int imw;