From 030a0bcb0c8b2888a006824286c1d565ca0cd182 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 18 Jul 2017 13:16:41 -0700 Subject: [PATCH] IO: Add LCD write function for C arrays. --- firmware/common/portapack_io.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/firmware/common/portapack_io.hpp b/firmware/common/portapack_io.hpp index 9ae46485..c84a3b2f 100644 --- a/firmware/common/portapack_io.hpp +++ b/firmware/common/portapack_io.hpp @@ -102,6 +102,17 @@ public: void lcd_reset_state(const bool active); void audio_reset_state(const bool active); + void lcd_data_write_command_and_data( + const uint_fast8_t command, + const uint8_t* data, + const size_t data_count + ) { + lcd_command(command); + for(size_t i=0; i& data