• wahtak

    Hi,

    I'm searching for an easy way to have a toggle with both a normal output and a negative output (neg. out = 1 if toggle is not set, 0 if toggle is set)

    The easiest what I could think of was to do:
    output = 1 - toggle
    but that gets pretty ugly

    [x]
    |
    [t b i]
    |    |
    [1(  |
    |    |
    [-   ]
    |
    

    Maybe there is an easier way of doing a 1-x?
    I'm rather new to pd and to this forum so I might as well ask whether thats a good way of showing pd-code here.

    Alex

    posted in technical issues read more
  • wahtak

    I havn't used PDuino but i'll try to help.

    All you need to do is convert a decimal (in this case 0 to 8) into a 3 digit binary number (for pin 0, 1 and 2)

    [x\ number (or hradio) as input
    |\
    | [mod 2]
    | \
    | pin 0
    [/2]
    |
    _
    |\
    | [mod 2]
    | \
    | pin 1
    [/2]
    |
    _
    \
    [mod 2]
    \
    pin 2

    Did that help?

    Alex

    EDIT: mixed up the pin numbers__

    posted in technical issues read more
  • wahtak

    neat!

    Thanks

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!