IO: Add LCD write function for C arrays.

This commit is contained in:
Jared Boone 2017-07-18 13:16:41 -07:00
parent bb194825ae
commit 030a0bcb0c

View File

@ -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_count; i++) {
lcd_write_data_fast(data[i]);
}
}
void lcd_data_write_command_and_data(
const uint_fast8_t command,
const std::initializer_list<uint8_t>& data