This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2023 Selvin | |
* | |
*/ | |
#include "ch32v20x.h" //include your board | |
#include "tusb.h" | |
#include <stdbool.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
typedef struct { | |
uint16_t *bitplane[6]; | |
uint16_t *palette; | |
uint16_t modulo; | |
} amiga_t; | |
static const int width = 320; | |
static const int height = 200; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import sys | |
if __name__ == '__main__': | |
fs = open(sys.argv[1], 'rb') | |
with open('fs.c', 'w+') as f: | |
print('const unsigned char fs_bitstream[] __attribute__((aligned(128))) ={', file=f) | |
counter = 0 | |
while 1: | |
counter = counter + 1 |