Closed deadlink closed 4 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
Latest commit: |
948440d
|
Status: | ✅ Deploy successful! |
Preview URL: | https://c198e2ff.lopaka-dev.pages.dev |
Branch Preview URL: | https://import-source-code.lopaka-dev.pages.dev |
@Gaai Hi, are you interested in this feature? I would appreciate it if you can try it on some real code, I only tested what we generate and on some examples from the web
I tried importing lopaka code a few hours ago and nothing happened. How should I try?
Alright. Just tried again. And cpp seems to work. Awesome already. All the icons are named "paint" though. I've tried a layout with strings, lines, icons and a custom image. All imports fine. Only the names of the strings are kept. Lines are called ' line' and icons and custom image are all called 'paint'. Already quite workable though
We'll figure out with icons later, now the main thing is that it works correctly, all the layers are in place etc
@deadlink You're on a roll! Just tested idf-style import. Looking good. Thank you!
Only the fonts fell back to 4x6. Where I used 5x8 and 6x10 in the export
@Gaai If you try to import the code exported from lopaka, make sure that there is setFont instead of setFont )
Status | Category | Percentage | Covered / Total |
---|---|---|---|
🔵 | Lines | 52.8% | 3111 / 5891 |
🔵 | Statements | 52.8% | 3111 / 5891 |
🔵 | Functions | 22.81% | 112 / 491 |
🔵 | Branches | 86.53% | 212 / 245 |
Importing source code based on regular expressions Fully supported platforms: u8g2 (arduino/esp-idf), adafruit, flipper All layers are supported, xbmp image import is supported, and non-computable values from variables and definitions are supported.
todo: