//inicio del circuito void Path::addStart(double x, double y){ Cell c; c.setTypeEnd(_START); setPositionXY(&c,x,y); cellsPath.push_back(c); }
/* display Two-Dimensional Code in the Eink screen: x:the X start address,X value can be 0 to 14; y:the Y start address, Y vlue can be 171 to 15; the charater erea is from x to x+6 in X position and from y to y-24 in Y position */ void E_ink_ESP8266::displayTwoDimensionalCode(INT8U x,INT8U y) { INT16U i; writeComm(0x11); /*data enter mode command */ writeData(0x05); /*set Y-mode:X increment and y decrement */ setPositionXY(x,x+7,y,y-24); converDimensionalCode(); writeComm(0x24); for(i=0;i<200;i++) { writeData(matrixdata_conver[i]); } }
/* display character in the Eink screen: x:the X start address,X value can be 0 to 14; y:the Y start address, Y vlue can be 171 to 7; the charater diplay erea is from x to x+3 in X position and from y to y-7 in Y position unicode_char:the character machine code */ void E_ink_ESP8266::displayChar(INT8U x,INT8U y,INT16U unicode_Char) { INT16U i; getCharMatrixData(unicode_Char); converCharMatrixData(); //setPositionXY(x,x+3,y,y-7); setPositionXY(x,x+3,y,y-7); writeComm(0x11); /*data enter mode command */ writeData(0x05); /*set Y-mode:X address is increment and y address decrement */ writeComm(0x24); for(i=16;i<32;i++) { writeData(matrixdata_conver[i]); } for(i=0;i<16;i++) { writeData(matrixdata_conver[i]); } }
//línea recta horitzontal cap a l'est void Path::addCell(double x, double y) { Cell c; c.setTypeEnd(_NONE); setPositionXY(&c,x,y); cellsPath.push_back(c); }
//inicio del circuito void Path::addKill(double x, double y){ Cell c; setPositionXY(&c,x,y); c.setTypeEnd(_KILLED); cellsPath.push_back(c); }
//inicio del circuito void Path::addGate(double x, double y){ Cell c; setPositionXY(&c,x,y); cellsPath.push_back(c); }