Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Udisplay #11665

Merged
merged 4 commits into from
Apr 11, 2021
Merged

Udisplay #11665

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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