Пример #1
0
// ported from LCD_screen
void clear(uint16_t colour) {
    uint16_t oldOrientation = _orientation;
    bool oldPenSolid = _penSolid;
    setOrientation(0);
    setPenSolid(true);
    rectangle(0, 0, screenSizeX()-1, screenSizeY()-1, colour);
    setOrientation(oldOrientation);
    setPenSolid(oldPenSolid);
}
Пример #2
0
// ported from Screen_HX8353E
void _setPoint(uint16_t x1, uint16_t y1, uint16_t colour) {
    if( /*(x1 < 0) || */(x1 >= screenSizeX()) || /*(y1 < 0) || */(y1 >= screenSizeY()) ) return;
    _setWindow(x1, y1, x1+1, y1+1);
    _writeData16(colour);
}
Пример #3
0
void Screen_HX8353E::_setPoint(uint16_t x1, uint16_t y1, uint16_t colour)
{
    if( (x1 < 0) || (x1 >= screenSizeX()) || (y1 < 0) || (y1 >= screenSizeY()) ) return;
    _setWindow(x1, y1, x1+1, y1+1);
    _writeData16(colour);
}