robotsrulz / MKS-TFT

MKS TFT32/28 alternative firmware
GNU General Public License v3.0
68 stars 46 forks source link

G-coded #5

Open Tannoo opened 7 years ago

Tannoo commented 7 years ago

Are all commands and feedback still G, M, and T codes?

robotsrulz commented 7 years ago

Yep, but not Marlin-compatible at the moment. See here: https://duet3d.com/wiki/G-code#M408:_Report_JSON-style_response

To poll status lcd panel sends M408 to the printer and waits for JSON response. "Connecting" status means there is no JSON read from the board. I heard someone implements M408 for Marlin so I'll wait for a while with other polling commands...

Tannoo commented 7 years ago

I have been working alot with Marlin lcd stuff. I put the UBL menu system in place. I can look into the M408.

I was currently looking for a way for the TFT to see the current screen. Would sending a serial echo of the current screen work (obviously, only if a MKSTFT flag was enabled)?

Tannoo commented 7 years ago

I see it here: https://github.com/MarlinFirmware/Marlin/pull/6970

robotsrulz commented 7 years ago

This needs to be tested, potentially this makes Marlin compatible with PanelDue and this firmware too.

Tannoo commented 7 years ago

I can create a branch with the M408 additions in it to test with. Or have you already done that?

Tannoo commented 7 years ago

I am also interested in modifying your work to have the option to mimic the current Marlin DOGM display screens (close, anyway).

robotsrulz commented 7 years ago

This project is low priority at the moment due to high load on other (non-public and well paid) projects. My plans for this project include implementing printing from on-screen media (USB sticks and sd card) and make the firmware loadable using Makerbase bootloader. Any other features will be implemented after that (not real soon).

So any help with testing new functionality and implementing new stuff is highly appreciated. If you are willing to submit code which doesn't break any existing functionality and does something new then you're welcome.

Tannoo commented 7 years ago

I will do what I can. I have an MKS TF32 working on Ramps 1.4 along side a discount full graphic display.

I am new to smoothie's way of doing things. But, I have forked your repo and will start tinkering and testing.

It may be a long road for me, but a road I am willing to take. ;)

robotsrulz commented 7 years ago

Sounds great!

Tannoo commented 7 years ago

Roxy and I did alot of work on a 'radar' map for seeing UBL mesh points on the lcds. I was hoping to get that on the tft also.

Tannoo commented 7 years ago

I don't know if I am the one to get storage printing and bootloader stuff working. I'm not THAT good. Lol

Tannoo commented 7 years ago

But, I am sure (given enough time) I could learn.

robotsrulz commented 7 years ago

Storage printing is already implemented in other (not PanelDue fork and it's fully Marlin-compatible) MKS-TFT32 firmware (see here: https://www.youtube.com/watch?v=LfauV0CJYfo). Now I need to merge these two very different pieces of code. It may take some time...