C51 single-chip button driver, c language