While I compile and upload the sketch, all the arduino pins are set to High, in my case to 3.3V because I am working with an Arduino Due board. The same when I press the reset button, at that moment it goes to 3.3V. How can I do so that in these actions the outputs of the pins (DAC1, pin 9) that interest me are kept in LOW, ie 0V?
The pins should be floating after reset, and before your program has set them to OUTPUT. To prevent stray static charges from giving a reading of HIGH, connect the pin to ground via a 10K resistor.
➜ do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.