#include <array>
#include <iostream>
#include <cassert>
enum class Ink:unsigned {black=0,white=1,yellow=2,red=3};
int main(){ // abstract packing model, NOT a vendor transmission encoding
constexpr unsigned width=384,height=184;std::array<unsigned char,width*height/4> packed{};
packed[0]=static_cast<unsigned char>((unsigned(Ink::black)<<6)|(unsigned(Ink::white)<<4)|(unsigned(Ink::yellow)<<2)|unsigned(Ink::red));
assert(packed.size()==17664);assert(packed[0]==0x1b);
std::cout<<"abstract 2-bit palette model: "<<packed.size()<<" bytes; not hardware SPI data\n";
#if DISPLAY_STAGE >= 2
std::cout<<"Full refresh must use the exact 3.5-inch G vendor driver and BUSY contract.\n";
#endif
}
