updated logic_compare =, added pin_analog and pin_digital translations