Honestly I would not rewrite the software. Marlin is open source and probably 95% of the printers use this. They've done the hard lessons so use that. Also be careful with going overboard work your heaters especially if you are going to use your own software. There have been a few people who have burnt down their houses even with a single 40w 12v heater. Temp sensor comes loose so the software has no feedback and just drives the heater which melted the aluminum heater block which ignited the plastic model below it. Marlin has support for safety here, also has software PID heater controller and many other lessons learnt.
Sent from my SM-N920C using Tapatalk
Sent from my SM-N920C using Tapatalk