This contribution deals with a new computational approach to optimal control design for a class of switched systems. The control strategy we develop is based on the proximal point method applied to a specific optimal control problem (OCP) with switched dynamics. The class of OCPs under consideration is widely applicable in optimization of electronic systems. We create constructive approximations for the initial sophisticated OCP, establish numerical stability of the resulting computational algorithm and develop an optimal control strategy. We finally discuss some numerical issues, study an illustrative example and also point possible generalizations of the elaborated control design in the context of hybrid dynamic systems.