Electronic device attached to a computer