COSA
An Object-Oriented Platform for Arduino Programming
HD44780_IO.cpp
Go to the documentation of this file.
1 
21 #include "HD44780.hh"
22 
23 void
24 HD44780::IO::write8b(uint8_t data)
25 {
26  write4b(data >> 4);
27  write4b(data);
28 }
29 
30 void
31 HD44780::IO::write8n(const void* buf, size_t size)
32 {
33  const uint8_t* bp = (const uint8_t*) buf;
34  while (size--) write8b(*bp++);
35 }
36 
virtual void write8n(const void *buf, size_t size)
Definition: HD44780_IO.cpp:31
virtual void write8b(uint8_t data)
Definition: HD44780_IO.cpp:24
virtual void write4b(uint8_t data)=0