def wait_until_idle(self):
    while (self.digital_read(self.busy_pin) == 0):
        self.delay_ms(100)
def wait_until_idle(self):
    while (self.digital_read(self.busy_pin) == 0):
        self.delay_ms(100)