what im trying to make is a blind control for a 12vdc motor
this is going to be my first project with the ZUNO, has anyone got an example on how to use the "ZUNO_SETUP_CHANNELS(ZUNO_BLINDS(getterFunction, setterFunction))"
I have recently done just that. Not directly controlling a motor, my blinds are a nightmare to talk to so I wired directly to their remote control (attached photograph is an early prototype), but the principles are still the same.
Basically the setter will receive a value between 0 and 99 - 0 is closed, 99 is open, and obviously any value in-between is a specific position. You can then react accordingly.
Be sure to store the new position so that your getter can return it - just in case the Z-Wave gateway ever requests it.
I went a step further for my setup. I calculated the timing of the motor traversing the blinds and wrote an algorithm to manage the timing of this from whatever the current position is (could be open, could be closed, or could be a partial position) to another position (which likewise could be all the way open, all the way closed, or another partial position). I then activate either the opening or closing and, when the calibrated amount of time has elapsed, I then activate a stop. End result is I can say "Hey Siri set blinds to 50%" and they move to that - even though the blinds themselves have no such capability. Has been fantastic for my daughter who always has sun shining in her eyes when we have dinner.