My Maestro Menu Files are now on github



  • Is there a 'built in' Maestro function to turn the main power off/on? I want to toggle the PS_ON pin via M80/M81.

    I am looking to add this to the main menu as a button. All I can come up with so was is defining 2 buttons, one "On" and one "Off".

    I can not figure out how to toggle a single button as of yet- 2 img files, one for on, one for off. when one state is enabled, the other is an option.


  • administrators

    @sinned6915 said in My Maestro Menu Files are now on github:

    Is there a 'built in' Maestro function to turn the main power off/on? I want to toggle the PS_ON pin via M80/M81.

    I am looking to add this to the main menu as a button. All I can come up with so was is defining 2 buttons, one "On" and one "Off".

    I can not figure out how to toggle a single button as of yet- 2 img files, one for on, one for off. when one state is enabled, the other is an option.

    That's not currently possible. We'd need to add 2 more visibility options to the current list, one for when power is on and the other for when power is off.



  • dc42-

    my apologies, i seem to be suffering from my specific application blindspot, not being familiar with the original Maestro operation-

    I am using LPC port on ReArm. Both the controller and display are 'On' as I feed it power via +5VFSB on APX PSU. ATX control via M80/M81.

    To turn on the main power, I use the PS_ON function.

    So lacking the power on/off state, I will use 2 menu button items to trigger on & off.

    Making the icons is proving more challenging than I thought.



  • I threw together an Excel spreadsheet to 'draw' icons and convert the binary and hex numbers. Its semi-automatic: meaning that you might need to adjust the lines and ranges to suit.

    I 'checked' it against the binary for the fan.img icon in mud's menus.

    Image Icon Spreadsheet Preview

    https://github.com/nionio6915/LPC1768-RepRapFirmware-Files/blob/master/icon-creator.xlsx?raw=true

    It uses conditional formatting to highlight the boxes and fill them in if you populate it with a 1, and spits out the binary and hex codes.

    I only set it up for up to 8 pixel and 16 pixel widths. If you adjust the rows / columns you will have to play with the array and transposes.
    Its not hard, but dont be surprised if you have to tweak it a bit.

    As always, use at your own risk, your mileage will vary.


  • administrators

    Thanks for sharing this!

    Another way that users have created icons is to use the same editor that Marlin users use to generate the icons for a 12864 display, then use a hex editor to add the 2 header bytes at the start.



  • @dc42 can you point us to the Marlin way? I did not know such a thing existed.


  • administrators

    @sinned6915 said in My Maestro Menu Files are now on github:

    @dc42 can you point us to the Marlin way? I did not know such a thing existed.

    I'm not certain, but I found a link on Hackaday to this http://en.radzio.dxp.pl/bitmap_converter/. It looks like it generates a C file, so you would either need to compile that or use a hex editor such as HxD to create a binary file containing the data.



  • Thanks for sharing. One request, is it possible to add Emergency Stop to the menu? Pause would not stop the print head while it was homing and my filament spool somehow got trapped under the Z motor which was crushing it. Unfortunately powering off caused me to lose everything on the SD Card.



  • @bugsysiegals I can't see why not, but I'm on holiday now until July, but (if I remember) I'll look at it when I get back. If you don't hear from me by say the 5th or 6th of July, I've forgotten - send me a reminder, lol.



  • Thank you kind sir, hopefully this will save somebody else in the future if they ever need to emergency stop and aren't next to the computer.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.