add l298n(motor driver) api in resource module