diff options
| author | DrNuget <drnuget@outlook.com> | 2025-12-27 05:13:48 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-12-27 05:13:48 +0200 |
| commit | d7e2dd842af87d0014fdb210286d0eb86a2e5934 (patch) | |
| tree | d39e7039eb33ee1c3322e4b069acb49127b4acdb /include/brailleboi.h | |
| parent | fc35c0f8ed323d70c8f02dd131c9a531d02f6cab (diff) | |
| download | brailleboi-master.tar.gz | |
Diffstat (limited to 'include/brailleboi.h')
| -rw-r--r-- | include/brailleboi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/brailleboi.h b/include/brailleboi.h new file mode 100644 index 0000000..26ada93 --- /dev/null +++ b/include/brailleboi.h @@ -0,0 +1,24 @@ +#ifndef BRAILLEBOI_H +#define BRAILLEBOI_H + +typedef struct image_buffer { + int width, height; + int char_width, char_height; + int* contents; +} image_buffer; + +int brailleInit(int width, int height, image_buffer* buf); + +int brailleStop(image_buffer* buf); + +int brailleReorganizeBits(int old); + +void braillePrint(int data); + +int braillePlot(int x, int y, image_buffer* buf); + +void brailleClearBuffer(image_buffer* buf); + +void brailleUpdateScreen(image_buffer* buf); + +#endif |
