Are you controlling a stepper motor or regular spinning motors?If it's the spinning motors, you don't really need a library--just set the inputs high/low as needed. If it's the stepper, then a library may be useful, depending.--Michael
According to the listing. It's not a '298. It's some mystery made-in-china driver chip with internal MOSFET switches. As the seller (more or less correctly) notes, the '298 is based on obsolete BJT technology and has significant voltage drop and hence heat dissipation. It's a shame they don't give a part number or anything. In any event, the third picture in the ebay listing linked above tells you how to use it
Though I saw some where ut can do PWM. How do yoy do that on such mosfet chip?
As mentioned by DrAzzy, the third picture on the listing tells you how to use it, including PWM.For instance to turn motor A forwards with PWM speed control, you take IN2 low and apply PWM to IN1.Edit: Incidentally, that's a relatively high price for one of those modules. You can get one for US$0.99:-1.5A Mini Dual Channel DC Motor Driver Module Beyond L298N PWM Speed Control