Skip to content

Commit

Permalink
Merge pull request #11665 from gemu2015/udisplay
Browse files Browse the repository at this point in the history
Udisplay
  • Loading branch information
arendst authored Apr 11, 2021
2 parents c2cde43 + 4805f26 commit 1fdcb68
Show file tree
Hide file tree
Showing 12 changed files with 1,241 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,16 @@ void Adafruit_GFX::setTextSize(uint8_t s_x, uint8_t s_y) {
textsize_y = (s_y > 0) ? s_y : 1;
}

void Adafruit_GFX::setwidth(uint16_t w) {
WIDTH = w;
_width = w;
}

void Adafruit_GFX::setheight(uint16_t h) {
HEIGHT = h;
_height = h;
}

/**************************************************************************/
/*!
@brief Set rotation setting for display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ virtual void
/************************************************************************/
int16_t height(void) const { return _height; }

void setwidth(uint16_t w);

void setheight(uint16_t h);

/************************************************************************/
/*!
@brief Get rotation setting for display
Expand Down
30 changes: 30 additions & 0 deletions lib/lib_display/UDisplay/keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#######################################
# Syntax Coloring Map
#######################################

#######################################
# Datatypes (KEYWORD1)
#######################################

ST7789 KEYWORD1


#######################################
# Methods and Functions (KEYWORD2)
#######################################

setRotation KEYWORD2
setAddrWindow KEYWORD2
pushColor KEYWORD2
drawPixel KEYWORD2
drawFastVLine KEYWORD2
drawFastHLine KEYWORD2
fillRect KEYWORD2
setRotation KEYWORD2
setRotation KEYWORD2
height KEYWORD2
width KEYWORD2
invertDisplay KEYWORD2
drawImage KEYWORD2
setScrollArea KEYWORD2
scroll KEYWORD2
9 changes: 9 additions & 0 deletions lib/lib_display/UDisplay/library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name=universal display Library
version=0.1
author=Gerhard Mutz
maintainer=Gerhard Mutz
sentence=This is a library a couple of displays.
paragraph=This is a library a couple of displays.
category=Display
url=https://github.com/arendst/Tasmota
architectures=*
Loading

0 comments on commit 1fdcb68

Please sign in to comment.