analog inputs fix in firmware and changes in demo app