Skip to content

Adafruit_GFX

詳細情報

メンバー

Adafruit_GFX()

Adafruit_GFX::Adafruit_GFX(int16_t w, int16_t h)

引数

  • int16_t w
  • int16_t h

drawPixel()

virtual void Adafruit_GFX::drawPixel(int16_t x, int16_t y, uint16_t color)=0

引数

  • int16_t x
  • int16_t y
  • uint16_t color

drawLine()

void Adafruit_GFX::drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • uint16_t color

drawFastVLine()

void Adafruit_GFX::drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t h
  • uint16_t color

drawFastHLine()

void Adafruit_GFX::drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • uint16_t color

drawRect()

void Adafruit_GFX::drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • int16_t h
  • uint16_t color

fillRect()

void Adafruit_GFX::fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • int16_t h
  • uint16_t color

fillScreen()

void Adafruit_GFX::fillScreen(uint16_t color)

引数

  • uint16_t color

invertDisplay()

void Adafruit_GFX::invertDisplay(boolean i)

引数

  • boolean i

drawCircle()

void Adafruit_GFX::drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint16_t color

drawCircleHelper()

void Adafruit_GFX::drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint8_t cornername
  • uint16_t color

fillCircle()

void Adafruit_GFX::fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint16_t color

fillCircleHelper()

void Adafruit_GFX::fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint8_t cornername
  • int16_t delta
  • uint16_t color

drawTriangle()

void Adafruit_GFX::drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • uint16_t color

fillTriangle()

void Adafruit_GFX::fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • uint16_t color

drawRoundRect()

void Adafruit_GFX::drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t w
  • int16_t h
  • int16_t radius
  • uint16_t color

fillRoundRect()

void Adafruit_GFX::fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t w
  • int16_t h
  • int16_t radius
  • uint16_t color

drawBitmap()

void Adafruit_GFX::drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • constuint8_t * bitmap
  • int16_t w
  • int16_t h
  • uint16_t color

drawChar()

void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)

引数

  • int16_t x
  • int16_t y
  • unsigned char c
  • uint16_t color
  • uint16_t bg
  • uint8_t size

setCursor()

void Adafruit_GFX::setCursor(int16_t x, int16_t y)

引数

  • int16_t x
  • int16_t y

setTextColor()

void Adafruit_GFX::setTextColor(uint16_t c)

引数

  • uint16_t c

setTextColor()

void Adafruit_GFX::setTextColor(uint16_t c, uint16_t bg)

引数

  • uint16_t c
  • uint16_t bg

setTextSize()

void Adafruit_GFX::setTextSize(uint8_t s)

引数

  • uint8_t s

setTextWrap()

void Adafruit_GFX::setTextWrap(boolean w)

引数

  • boolean w

setRotation()

void Adafruit_GFX::setRotation(uint8_t r)

引数

  • uint8_t r

write()

void Adafruit_GFX::write(uint8_t)

引数

  • uint8_t ``

height()

int16_t Adafruit_GFX::height(void)

戻り値

int16_t

width()

int16_t Adafruit_GFX::width(void)

戻り値

int16_t

getRotation()

uint8_t Adafruit_GFX::getRotation(void)

戻り値

uint8_t

newColor()

transforms a color in 16-bit form given the RGB components. The default implementation makes a 5-bit red, a 6-bit green and a 5-bit blue (MSB to LSB). Devices that use different scheme should override this.

uint16_t Adafruit_GFX::newColor(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

戻り値

uint16_t

background()

void Adafruit_GFX::background(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

background()

void Adafruit_GFX::background(color c)

引数

  • color c

fill()

void Adafruit_GFX::fill(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

fill()

void Adafruit_GFX::fill(color c)

引数

  • color c

noFill()

void Adafruit_GFX::noFill()

stroke()

void Adafruit_GFX::stroke(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

stroke()

void Adafruit_GFX::stroke(color c)

引数

  • color c

noStroke()

void Adafruit_GFX::noStroke()

text()

void Adafruit_GFX::text(const char *text, int16_t x, int16_t y)

引数

  • constchar * text
  • int16_t x
  • int16_t y

text()

void Adafruit_GFX::text(int value, uint8_t posX, uint8_t posY)

引数

  • int value
  • uint8_t posX
  • uint8_t posY

text()

void Adafruit_GFX::text(long value, uint8_t posX, uint8_t posY)

引数

  • long value
  • uint8_t posX
  • uint8_t posY

text()

void Adafruit_GFX::text(char value, uint8_t posX, uint8_t posY)

引数

  • char value
  • uint8_t posX
  • uint8_t posY

textWrap()

void Adafruit_GFX::textWrap(const char *text, int16_t x, int16_t y)

引数

  • constchar * text
  • int16_t x
  • int16_t y

textSize()

void Adafruit_GFX::textSize(uint8_t size)

引数

  • uint8_t size

circle()

void Adafruit_GFX::circle(int16_t x, int16_t y, int16_t r)

引数

  • int16_t x
  • int16_t y
  • int16_t r

point()

void Adafruit_GFX::point(int16_t x, int16_t y)

引数

  • int16_t x
  • int16_t y

line()

void Adafruit_GFX::line(int16_t x1, int16_t y1, int16_t x2, int16_t y2)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2

quad()

void Adafruit_GFX::quad(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • int16_t x3
  • int16_t y3
  • int16_t x4
  • int16_t y4

rect()

void Adafruit_GFX::rect(int16_t x, int16_t y, int16_t width, int16_t height)

引数

  • int16_t x
  • int16_t y
  • int16_t width
  • int16_t height

rect()

void Adafruit_GFX::rect(int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)

引数

  • int16_t x
  • int16_t y
  • int16_t width
  • int16_t height
  • int16_t radius

triangle()

void Adafruit_GFX::triangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • int16_t x3
  • int16_t y3

Adafruit_GFX()

Adafruit_GFX::Adafruit_GFX(int16_t w, int16_t h)

引数

  • int16_t w
  • int16_t h

drawPixel()

virtual void Adafruit_GFX::drawPixel(int16_t x, int16_t y, uint16_t color)=0

引数

  • int16_t x
  • int16_t y
  • uint16_t color

drawLine()

virtual void Adafruit_GFX::drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • uint16_t color

drawFastVLine()

virtual void Adafruit_GFX::drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t h
  • uint16_t color

drawFastHLine()

virtual void Adafruit_GFX::drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • uint16_t color

drawRect()

virtual void Adafruit_GFX::drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • int16_t h
  • uint16_t color

fillRect()

virtual void Adafruit_GFX::fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • int16_t w
  • int16_t h
  • uint16_t color

fillScreen()

virtual void Adafruit_GFX::fillScreen(uint16_t color)

引数

  • uint16_t color

invertDisplay()

virtual void Adafruit_GFX::invertDisplay(boolean i)

引数

  • boolean i

drawCircle()

void Adafruit_GFX::drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint16_t color

drawCircleHelper()

void Adafruit_GFX::drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint8_t cornername
  • uint16_t color

fillCircle()

void Adafruit_GFX::fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint16_t color

fillCircleHelper()

void Adafruit_GFX::fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t r
  • uint8_t cornername
  • int16_t delta
  • uint16_t color

drawTriangle()

void Adafruit_GFX::drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • uint16_t color

fillTriangle()

void Adafruit_GFX::fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • uint16_t color

drawRoundRect()

void Adafruit_GFX::drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t w
  • int16_t h
  • int16_t radius
  • uint16_t color

fillRoundRect()

void Adafruit_GFX::fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)

引数

  • int16_t x0
  • int16_t y0
  • int16_t w
  • int16_t h
  • int16_t radius
  • uint16_t color

drawBitmap()

void Adafruit_GFX::drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)

引数

  • int16_t x
  • int16_t y
  • constuint8_t * bitmap
  • int16_t w
  • int16_t h
  • uint16_t color

drawChar()

void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)

引数

  • int16_t x
  • int16_t y
  • unsigned char c
  • uint16_t color
  • uint16_t bg
  • uint8_t size

setCursor()

void Adafruit_GFX::setCursor(int16_t x, int16_t y)

引数

  • int16_t x
  • int16_t y

setTextColor()

void Adafruit_GFX::setTextColor(uint16_t c)

引数

  • uint16_t c

setTextColor()

void Adafruit_GFX::setTextColor(uint16_t c, uint16_t bg)

引数

  • uint16_t c
  • uint16_t bg

setTextSize()

void Adafruit_GFX::setTextSize(uint8_t s)

引数

  • uint8_t s

setTextWrap()

void Adafruit_GFX::setTextWrap(boolean w)

引数

  • boolean w

setRotation()

void Adafruit_GFX::setRotation(uint8_t r)

引数

  • uint8_t r

write()

virtual void Adafruit_GFX::write(uint8_t)

引数

  • uint8_t ``

height()

int16_t Adafruit_GFX::height(void)

戻り値

int16_t

width()

int16_t Adafruit_GFX::width(void)

戻り値

int16_t

getRotation()

uint8_t Adafruit_GFX::getRotation(void)

戻り値

uint8_t

newColor()

transforms a color in 16-bit form given the RGB components. The default implementation makes a 5-bit red, a 6-bit green and a 5-bit blue (MSB to LSB). Devices that use different scheme should override this.

virtual uint16_t Adafruit_GFX::newColor(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

戻り値

uint16_t

background()

void Adafruit_GFX::background(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

background()

void Adafruit_GFX::background(color c)

引数

  • color c

fill()

void Adafruit_GFX::fill(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

fill()

void Adafruit_GFX::fill(color c)

引数

  • color c

noFill()

void Adafruit_GFX::noFill()

stroke()

void Adafruit_GFX::stroke(uint8_t red, uint8_t green, uint8_t blue)

引数

  • uint8_t red
  • uint8_t green
  • uint8_t blue

stroke()

void Adafruit_GFX::stroke(color c)

引数

  • color c

noStroke()

void Adafruit_GFX::noStroke()

text()

void Adafruit_GFX::text(const char *text, int16_t x, int16_t y)

引数

  • constchar * text
  • int16_t x
  • int16_t y

textWrap()

void Adafruit_GFX::textWrap(const char *text, int16_t x, int16_t y)

引数

  • constchar * text
  • int16_t x
  • int16_t y

textSize()

void Adafruit_GFX::textSize(uint8_t size)

引数

  • uint8_t size

circle()

void Adafruit_GFX::circle(int16_t x, int16_t y, int16_t r)

引数

  • int16_t x
  • int16_t y
  • int16_t r

point()

void Adafruit_GFX::point(int16_t x, int16_t y)

引数

  • int16_t x
  • int16_t y

line()

void Adafruit_GFX::line(int16_t x1, int16_t y1, int16_t x2, int16_t y2)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2

quad()

void Adafruit_GFX::quad(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, int16_t x4, int16_t y4)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • int16_t x3
  • int16_t y3
  • int16_t x4
  • int16_t y4

rect()

void Adafruit_GFX::rect(int16_t x, int16_t y, int16_t width, int16_t height)

引数

  • int16_t x
  • int16_t y
  • int16_t width
  • int16_t height

rect()

void Adafruit_GFX::rect(int16_t x, int16_t y, int16_t width, int16_t height, int16_t radius)

引数

  • int16_t x
  • int16_t y
  • int16_t width
  • int16_t height
  • int16_t radius

triangle()

void Adafruit_GFX::triangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3)

引数

  • int16_t x1
  • int16_t y1
  • int16_t x2
  • int16_t y2
  • int16_t x3
  • int16_t y3