using pull up mode in gpio