Skip to content

Commit 173a426

Browse files
committed
using transfer16(...) in driver::ili9341
1 parent 9e760bc commit 173a426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modm/driver/display/ili9341_spi.hpp.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ public:
4646
writeCommand(Command command, uint8_t const *args, std::size_t length)
4747
{
4848
Dc::reset(); // enable command
49-
SPI::transferBlocking(i(command));
49+
SPI::transfer(i(command));
5050
Dc::set(); // reset to data
51+
%% if spi_16bit_hardware
52+
SPI::setDataSize(SPI::DataSize::Bit8);
53+
%% endif
5154
if (length != 0)
5255
{
5356
%% if spi_16bit_hardware

0 commit comments

Comments
 (0)