-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathL298N_Cfg.c
38 lines (30 loc) · 1.21 KB
/
L298N_Cfg.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* _______ .__ __. _______ __ .__ __. _______ _______ .______ .______ __ .__ __. _______
* | ____|| \ | | / _____|| | | \ | | | ____|| ____|| _ \ | _ \ | | | \ | | / _____|
* | |__ | \| | | | __ | | | \| | | |__ | |__ | |_) | | |_) | | | | \| | | | __
* | __| | . ` | | | |_ | | | | . ` | | __| | __| | / | ___/ | | | . ` | | | |_ |
* | |____ | |\ | | |__| | | | | |\ | | |____ | |____ | |\ \----. | | | | | |\ | | |__| |
* |_______||__| \__| \______| |__| |__| \__| |_______||_______|| _| `._____| | _| |__| |__| \__| \______|
*
*/
#ifdef __cplusplus
extern "C"{
#endif /*__cplusplus*/
#include "L298N.h"
#include <Arduino.h>
L298N_PinType_t L298N_ChannelCfg[L298N_MOTOR_CHANNEL_MAX]=
{
{
.pinNumA = 16,
.pinNumB = 17,
.pinWirteFunc = digitalWrite,
},
{
.pinNumA = 18,
.pinNumB = 19,
.pinWirteFunc = digitalWrite,
}
};
#ifdef __cplusplus
}
#endif /*__cplusplus*/