Programmable controller for L298n DC Motor driver