def write_ndef(self, ndef, slot=1):
        """
        Write an NDEF tag configuration to the YubiKey NEO.
        """
        if not self.capabilities.have_nfc_ndef(slot):
            raise yubikey_base.YubiKeyVersionError("NDEF slot %i unsupported in %s" % (slot, self))

        return self._device._write_config(ndef, _NDEF_SLOTS[slot])
Write an NDEF tag configuration to the YubiKey NEO.