“Lixie库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
第21行: 第21行:
  
  
 +
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="60%" valign="top" align="left"|
  
 
<br>
 
<br>
<font color="orange" size="+1">'''Lixie '''</font><br><br>
+
<font color="orange" size="+1">'''Lixie 函数'''</font><br><br>
  
 
<!--<font color="dodgerblue" >'''BLACK 0'''</font>-->
 
<!--<font color="dodgerblue" >'''BLACK 0'''</font>-->
  
- <font color="forestgreen">Adafruit_GFX(int16_t w, int16_t h)</font>
+
- <font color="forestgreen">Lixie(const uint8_t pin, uint8_t nDigits)</font>
  
- <font color="forestgreen">drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)</font>
+
- <font color="forestgreen">begin()</font>
  
- <font color="forestgreen">drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">clear(bool show_change = true)</font>
  
- <font color="forestgreen">drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)</font>
+
- <font color="forestgreen">show()</font>
  
- <font color="forestgreen">drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">write(uint32_t input)</font>
  
- <font color="forestgreen">fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">write(char* input)</font>
  
- <font color="forestgreen">fillScreen(uint16_t color)</font>
+
- <font color="forestgreen">write_digit(byte input, byte index)</font>
  
- <font color="forestgreen">invertDisplay(boolean i)</font>
+
- <font color="forestgreen">push_digit(byte number)</font>
  
- <font color="forestgreen">drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
- <font color="forestgreen">color(byte r, byte g, byte b)</font>
  
- <font color="forestgreen">drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,uint16_t color)</font>
+
- <font color="forestgreen">color(CRGB c)</font>
  
- <font color="forestgreen">fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
- <font color="forestgreen">color(byte r, byte g, byte b, byte index)</font>
  
- <font color="forestgreen">fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,int16_t delta, uint16_t color)</font>
+
- <font color="forestgreen">color(CRGB c, byte index)</font>
  
- <font color="forestgreen">drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)</font>
+
- <font color="forestgreen">color_off(byte r, byte g, byte b)</font>
  
- <font color="forestgreen">fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)</font>
+
- <font color="forestgreen">color_off(CRGB c)</font>
  
- <font color="forestgreen">drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)</font>
+
- <font color="forestgreen">color_off(byte r, byte g, byte b, byte index)</font>
  
- <font color="forestgreen">fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)</font>
+
- <font color="forestgreen">color_off(CRGB c, byte index)</font>
  
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">brightness()</font>
  
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg)</font>
+
- <font color="forestgreen">color_balance()</font>
  
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">max_power()</font>
  
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg)</font>
+
- <font color="forestgreen">get_numdigits()</font>
  
- <font color="forestgreen">drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</font>
+
- <font color="forestgreen">maxed_out()</font>
  
- <font color="forestgreen">drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)</font>
+
给data数组添加值
  
- <font color="forestgreen">setCursor(int16_t x, int16_t y)</font>
+
参数 无
  
- <font color="forestgreen">setTextColor(uint16_t c)</font>
+
返回值
 +
:bool
 +
- <font color="forestgreen">get_leds()</font>
  
- <font color="forestgreen">setTextColor(uint16_t c, uint16_t bg)</font>
+
给data数组添加值
  
- <font color="forestgreen">setTextSize(uint8_t s)</font>
+
参数 无
  
- <font color="forestgreen">setTextWrap(boolean w)</font>
+
返回值
 +
:CRGB*
  
- <font color="forestgreen">setRotation(uint8_t r)</font>
+
|width="40%" valign="top" align="left"|
 
+
<br>
- <font color="forestgreen">cp437(boolean x=true)</font>
+
<font color="orange" size="+1"></font><br><br><br>
 
+
- <font color="forestgreen">setFont(const GFXfont *f = NULL)</font>
+
 
+
- <font color="forestgreen">getTextBounds(char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)</font>
+
 
+
- <font color="forestgreen">getTextBounds(const __FlashStringHelper *s, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)</font>
+
 
+
- <font color="forestgreen">int16_t height(void) const</font>
+
 
+
- <font color="forestgreen">int16_t width(void) const</font>
+
 
+
- <font color="forestgreen">uint8_t getRotation(void) const</font>
+
  
- <font color="forestgreen">int16_t getCursorX(void) const</font>
+
<font color="orange" >'''Debug Functions'''</font>
  
- <font color="forestgreen">int16_t getCursorY(void) const</font>
+
- <font color="forestgreen">print_binary()</font>
  
 +
- <font color="forestgreen">print_current()</font>
  
 +
|}
 
<br>
 
<br>
  

2017年4月18日 (二) 11:32的版本

LIXIE 库

Lixie 套件

Lixie arduino Library github地址:https://github.com/connornishijima/Lixie-arduino


Examples

  • ESP8266
- XX :
- XX :
  • Arduino
- XX :
- XX :



Lixie 函数


- Lixie(const uint8_t pin, uint8_t nDigits)

- begin()

- clear(bool show_change = true)

- show()

- write(uint32_t input)

- write(char* input)

- write_digit(byte input, byte index)

- push_digit(byte number)

- color(byte r, byte g, byte b)

- color(CRGB c)

- color(byte r, byte g, byte b, byte index)

- color(CRGB c, byte index)

- color_off(byte r, byte g, byte b)

- color_off(CRGB c)

- color_off(byte r, byte g, byte b, byte index)

- color_off(CRGB c, byte index)

- brightness()

- color_balance()

- max_power()

- get_numdigits()

- maxed_out()

给data数组添加值

参数 无

返回值

bool

- get_leds()

给data数组添加值

参数 无

返回值

CRGB*





Debug Functions

- print_binary()

- print_current()






返回Arduino库菜单

返回首页

更多建议和问题欢迎反馈至 YFRobot论坛