I am trying to write a program to activate the switches on this device.
Assuming I connect the UP button (as indicated) to PIN12 and configure it as OUTPUT, how would initialize and operate it?
i'm used to doing digitalWrite(PIN12, LOW); in setup and digitalWrite(PIN12, HIGH); to turn something on, but in this case (as per the instructions) it says that the lead needs to be set to GND (LOW).
do I just reverse this and set pin 12 to HIGH in setup() and to LOW in my loop when I want to press the button?
One thing I considered is that rather that setting it to LOW or HIGH, change PIN 12 to INPUT in setup(), then when I want to press the button change pinmode to OUTPUT and writing LOW, delay(10), and then set pinmode to INPUT to release the button.
That is even better. Write two functions that do that, one to set and one to clear the button. Pass the button pin number to the functions. That will eliminate a lot of repetition and keep all the coding in one place.
You didn't post all the details of the electronics, or really any electronics question. You don't have to respond to my suggestions if you don't value them. Have a nice day and enjoy this and future projects.
Where I went to school it was called "engineering", not "hygiene".
That is not how the protocol is explained in the forum guidelines. It is specifically discouraged because of how frequently it becomes a "game of 100 questions". You are told to post all the relevant information up front. Goodbye.
If you have an electronics question, just go ahead and ask. If you don't know what is relevant just post all of it, everything you know and any related helpful links that you used to find or work on your project. For example, you could tell us where you found the diagram you posted. That, and more, is detailed in the forum introductory threads. I'm sure someone will be glad to answer, but I already bowed out.
Realistically, we can not tell you "how the electronics work" without knowing what the electronics are.