I used analog pin and adc. But I need to change pin mode analog to output in code part. Is it possible ?
Welcome in the forum, Burak.
Have a look into the APIs for pin components, there you see how to change drive modes, Also refer to the "System Reference Guide" (from Creator's Help menu).