Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Oct 9, 2024
1 parent 155019f commit 2a716f8
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 134 deletions.
8 changes: 4 additions & 4 deletions packages/project-editor/lvgl/lvgl-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ const versions = {
[CF_RGB565A8.toString()]: "RGB565A8",
[CF_TRUE_COLOR.toString()]: "RGB888",

[CF_RAW.toString()]: "TRUECOLOR",
[CF_RAW_ALPHA.toString()]: "TRUECOLOR_ALPHA"
[CF_RAW.toString()]: "RAW",
[CF_RAW_ALPHA.toString()]: "RAW_ALPHA"
};

const pythonShell = new PythonShell("LVGLImage.py", {
Expand All @@ -286,7 +286,7 @@ const versions = {
"--cf",
TO_IMAGE_MODE[bitmap.bpp.toString()],
"--output",
`${tempDir}/output`,
`${tempDir}`,
bitmapFilePath
]
});
Expand All @@ -297,7 +297,7 @@ const versions = {
if (!wasError) {
try {
const cFile = await fs.promises.readFile(
`${tempDir}/output/${fileName}.c`,
`${tempDir}/${fileName}.c`,
"utf-8"
);
resolve(cFile);
Expand Down
Loading

0 comments on commit 2a716f8

Please sign in to comment.