mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-14 20:18:13 +00:00
IO: Add LCD write function for C arrays.
This commit is contained in:
parent
bb194825ae
commit
030a0bcb0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user