erpgc82
Junior Member level 1
Hello friends, how do I invert pin names, depending on the value of a variable or a memory address?
==> CCS COMPILER
Example:
if a condition is X:
#define SENSOR_E PIN_A1
#define SENSOR_S PIN_A2
If a condition is Y:
#define SENSOR_E PIN_A2
#define SENSOR_S PIN_A1
Can someone help me?
==> CCS COMPILER
Example:
if a condition is X:
#define SENSOR_E PIN_A1
#define SENSOR_S PIN_A2
If a condition is Y:
#define SENSOR_E PIN_A2
#define SENSOR_S PIN_A1
Can someone help me?