Closed yatli closed 3 years ago
Cool. I had always wanted to replace Serial.print with something more robust. DisplayMirror mode will need to be implemented using this new protocol.
I've never used that mode. With the new GUI (cross platform, rest assured) in place I guess it's the time.
Thinking of putting a MC into this:
int MCDisplayServer::run() {
// TODO external key, knobs etc. events handling
return -1;
}
void MCUIServer::update() {
megacom_task.tx_begin(COMCHANNEL_UART_USB, COMSERVER_EXTUI, 513);
megacom_task.tx_data(COMCHANNEL_UART_USB, USC_DRAW);
megacom_task.tx_vec(COMCHANNEL_UART_USB, (char*)oled_display.getBuffer(), 512);
megacom_task.tx_end(COMCHANNEL_UART_USB);
}
Some progress on the UI. Decoupled the Camelotia stuff and add multiple tabs:
Debug view ready:
Display mirror ready:
Too easy.
😮 Great work.
Any chance for easy .png screenshot export, and support for inverse colour mode. That's how I generate screenshots for the manual.
Done.
The OLED emulation is actually an aliasing artifact. Don't know exactly how to repro that when rendering to a PNG 😅
beautiful work. thankyou
The framework is ready now. @jmamma What about the UI? Do we want to add it to this repo?
Which UI?
https://github.com/yatli/MegaCom.UI ignore the README.
gotcha. keep repo separate is probably better.
Understood.
Currently it has the following functionalities:
You're on macOS? Let me build a package for you.
either mac or pc.
A nice little speed meter:
Thinking of putting a MC into this:
int MCDisplayServer::run() { // TODO external key, knobs etc. events handling return -1; }
i got one PT80 at home, would be so fun to have an MC inside! :)
Work in progress. We can build a lot of things upon this: