apply pin setting in firmware code as schematic