Hi there, thanks for the reply, I'll take a look. I already saw that the firmware keeps a total of filament printed and hours printed, which is good as a start point and I like that it keeps a log of its total use, as I can use that data to judge when the printer probably needs service. Last year I worked out how to write to the filament cartridge, which is just a 3-pin serial eeprom that must be wired to a GPIO on the microprocessor.
I think the function I'd like to add is effectively:
When starting print, read (your) eeprom value for starting filament value.
When ending / aborting a print, read again and subtract the difference from the stored value on the cartridge.
On the display:
Add a value displaying the remaining filament value (read from the cartridge).
Optionally, in a menu:
Add a 'maintenance' option to set the remaining filament to a new value (after refilling).
I love your firmware, you've unlocked my printer and made it so much more effective. Thank you. :-)
Ian.