“Lixie库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
 
(未显示1个用户的2个中间版本)
第10行: 第10行:
 
<font color="orange" size="+1">'''Examples'''</font><br>
 
<font color="orange" size="+1">'''Examples'''</font><br>
 
<br>
 
<br>
* ESP8266
 
:-[[ XX]] :
 
  
:-[[ XX]] :  
+
* Generic 一般通用
 +
:-[[ Lixie_counter | counter]] :  
  
* Arduino
+
:-[[ Lixie_counter_multi | counter_multi]] :  
:-[[ XX]] :  
+
  
:-[[ XX]] :  
+
:-[[ Lixie_FPS_test | FPS_test]] :  
  
 +
:-[[ Lixie_read_analog_voltage | read_analog_voltage]] :
  
 +
:-[[ Lixie_scoreboard | scoreboard]] :
  
<br>
 
<font color="orange" size="+1">'''Lixie库'''</font><br><br>
 
  
<!--<font color="dodgerblue" >'''BLACK 0'''</font>-->
+
* ESP8266
 +
:-[[ Lixie_data.sparkfun.com_streamer | data.sparkfun.com_streamer]] :
  
- <font color="forestgreen">Adafruit_GFX(int16_t w, int16_t h)</font>
+
:-[[ Lixie_live_php_visitors | live_php_visitors]] :
  
- <font color="forestgreen">drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)</font>
+
:-[[ Lixie_live_wordpress_visitors | live_wordpress_visitors]] :
  
- <font color="forestgreen">drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)</font>
+
:-[[ Lixie_ntp_clock | ntp_clock]] :
  
- <font color="forestgreen">drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)</font>
+
:-[[ Lixie_openweathermap_display | openweathermap_display]] : 
  
- <font color="forestgreen">drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
+
:-[[ Lixie_ping_speedometer | ping_speedometer]] :
  
- <font color="forestgreen">fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
 
  
- <font color="forestgreen">fillScreen(uint16_t color)</font>
 
  
- <font color="forestgreen">invertDisplay(boolean i)</font>
+
{| border="0" cellpadding="10" width="100%"
 +
|-
 +
|width="60%" valign="top" align="left"|
  
- <font color="forestgreen">drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
<br>
 +
<font color="orange" size="+1">'''Lixie 函数'''</font><br><br>
  
- <font color="forestgreen">drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,uint16_t color)</font>
+
<!--<font color="dodgerblue" >'''BLACK 0'''</font>-->
  
- <font color="forestgreen">fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
- <font color="forestgreen">Lixie(const uint8_t pin, uint8_t nDigits)</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">begin()</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">clear(bool show_change = true)</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">show()</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">write(uint32_t input)</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">write(char* input)</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">write_digit(byte input, 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, uint16_t bg)</font>
+
- <font color="forestgreen">push_digit(byte number)</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">color(byte r, byte g, byte b)</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">color(CRGB c)</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">color(byte r, byte g, byte b, byte index)</font> - 设置某位(0-3)颜色
  
- <font color="forestgreen">drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)</font>
+
- <font color="forestgreen">color(CRGB c, byte index)</font> - 设置某位(0-3)颜色
  
- <font color="forestgreen">setCursor(int16_t x, int16_t y)</font>
+
- <font color="forestgreen">color_off(byte r, byte g, byte b)</font> - 设置某位(0-3)颜色
  
- <font color="forestgreen">setTextColor(uint16_t c)</font>
+
- <font color="forestgreen">color_off(CRGB c)</font>
  
- <font color="forestgreen">setTextColor(uint16_t c, uint16_t bg)</font>
+
- <font color="forestgreen">color_off(byte r, byte g, byte b, byte index)</font>
  
- <font color="forestgreen">setTextSize(uint8_t s)</font>
+
- <font color="forestgreen">color_off(CRGB c, byte index)</font>
  
- <font color="forestgreen">setTextWrap(boolean w)</font>
+
- <font color="forestgreen">brightness(byte bright)</font> - 设置亮度
  
- <font color="forestgreen">setRotation(uint8_t r)</font>
+
- <font color="forestgreen">color_balance(CRGB c_adj)</font>
  
- <font color="forestgreen">cp437(boolean x=true)</font>
+
- <font color="forestgreen">max_power(byte volts, uint16_t milliamps)</font>
  
- <font color="forestgreen">setFont(const GFXfont *f = NULL)</font>
+
- <font color="forestgreen">get_numdigits()</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">maxed_out()</font>
 +
- 给data数组添加值
  
- <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>
+
返回值 :bool
  
- <font color="forestgreen">int16_t width(void) const</font>
+
- <font color="forestgreen">get_leds()</font>
 +
- 给data数组添加值
  
- <font color="forestgreen">uint8_t getRotation(void) const</font>
+
参数 无
 +
 
 +
返回值 :CRGB*
 +
 
 +
|width="40%" valign="top" align="left"|
 +
<br>
 +
<font color="orange" size="+1"></font><br><br><br>
  
- <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月20日 (四) 15:48的最后版本

LIXIE 库

Lixie 套件

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


Examples

  • Generic 一般通用
- counter :
- counter_multi :
- FPS_test :
- read_analog_voltage :
- scoreboard :


  • ESP8266
- data.sparkfun.com_streamer :
- live_php_visitors :
- live_wordpress_visitors :
- ntp_clock :
- openweathermap_display :
- ping_speedometer :



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) - 设置某位(0-3)颜色

- color(CRGB c, byte index) - 设置某位(0-3)颜色

- color_off(byte r, byte g, byte b) - 设置某位(0-3)颜色

- color_off(CRGB c)

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

- color_off(CRGB c, byte index)

- brightness(byte bright) - 设置亮度

- color_balance(CRGB c_adj)

- max_power(byte volts, uint16_t milliamps)

- get_numdigits()

- maxed_out() - 给data数组添加值

参数 无

返回值 :bool

- get_leds() - 给data数组添加值

参数 无

返回值 :CRGB*





Debug Functions

- print_binary()

- print_current()






返回Arduino库菜单

返回首页

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