Project

General

Profile

Statistics
| Revision:

root / branches / charging_station / code / projects / recharging / charging_station / linear_bom.h @ 85

History | View | Annotate | Download (547 Bytes)

1
/*Plug the molex for each BOM in with the BLACK wire to the
2
io pin and the red wire to the positive channel going down
3
the middle of the PINA/E/I2C block*/
4

    
5

    
6
#define LINEAR_BOM_PIN0 PIN_AN0
7
#define LINEAR_BOM_PIN1 PIN_AN1
8
#define LINEAR_BOM_PIN2 PIN_AN2
9
#define LINEAR_BOM_PIN3 PIN_AN3
10

    
11
#define lbom_set(which) \
12
    digital_output(LINEAR_BOM_PIN0 + which, 0)
13
#define lbom_off() \
14
    digital_output(LINEAR_BOM_PIN0, 1); \
15
    digital_output(LINEAR_BOM_PIN1, 1); \
16
    digital_output(LINEAR_BOM_PIN2, 1); \
17
    digital_output(LINEAR_BOM_PIN3, 1);