Humane, the ambitious start-up behind the Ai Pin device that aimed to one day replace smartphones, agreed to sell parts of its business to HP for $116 million, the companies said on Tuesday.