Implement M10 M11 to toggle anther 2 output pins

Home Forums TinyG TinyG Support Implement M10 M11 to toggle anther 2 output pins

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9228
    dandumit
    Member

    HEllo All,
    I have assembled a custom made board implementing TinyG. I intend to drive pick and place machine with it. Since I have pneumatic z axis I need to toggle another 2 pins.

    I would like to implement M10 M11 M12 and M13 to toggle 2 new pins.
    I was thinking to use pins PB4 PB5 but looking on source code it looks pretty complicated to toggle pins :
    gpio_set_bit_on(FLOOD_COOLANT_BIT);
    if (b & 0x08) { hw.out_port[0]->OUTSET = GPIO1_OUT_BIT_bm; }
    this struct implementation and binding it’s not clear for me.
    I need some help to drive port PB – pins PB4 PB5.

    Could someone give me a hint how to implement it ?

    Would be easier to implement using pins PA3 and PA4 ?

    Any help , example it’s greatly appreciated !

    Kind regards,
    Daniel

    #9229
    cmcgrath5035
    Moderator

    Not many ‘customizer types’ hang out regularly here.
    Perhaps a better audience at

    Another place to look/ask would be

    Be sure to read thru closed issues as well

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.