“Matrix.writeString()”的版本间的差异
(创建页面,内容为“{| style="width: 800px;" |- | <p style="color: #666666;font-size:220%">'''Matrix.writeString(character)'''</p> <br> <p style="color: #E87E05;font-size:135%">描述</...”) |
|||
第73行: | 第73行: | ||
<br> | <br> | ||
<p style="color: #E87E05;font-size:135%">其他</p> | <p style="color: #E87E05;font-size:135%">其他</p> | ||
− | |||
*[[Matrix.getHeight()|getHeight()]] | *[[Matrix.getHeight()|getHeight()]] | ||
*[[Matrix.getWidth()|getWidth()]] | *[[Matrix.getWidth()|getWidth()]] | ||
+ | *[[Matrix.setBrightness()|setBrightness()]] | ||
*[[Matrix.setLed()|setLed()]] | *[[Matrix.setLed()|setLed()]] | ||
+ | *[[Matrix.clearDisplay()|clearDisplay()]] | ||
*[[Matrix.setColor()|setColor()]] | *[[Matrix.setColor()|setColor()]] | ||
*[[Matrix.drawLine()|drawLine()]] | *[[Matrix.drawLine()|drawLine()]] | ||
第85行: | 第86行: | ||
*[[Matrix.drawCircle()|drawCircle()]] | *[[Matrix.drawCircle()|drawCircle()]] | ||
*[[Matrix.drawDisc()|drawDisc()]] | *[[Matrix.drawDisc()|drawDisc()]] | ||
+ | *[[Matrix.print()|print()]] | ||
*[[Matrix.drawBMP()|drawBMP()]] | *[[Matrix.drawBMP()|drawBMP()]] | ||
|} | |} |
2017年7月27日 (四) 04:58的最新版本
Matrix.writeString(character)
描述 用来在屏上动态显示字符(滚动)。一旦显示就不能操作,只有等滚动完毕才能操作。
参数 character:需要显示的字符。 返回值 无 示例
#include <Microduino_Matrix.h>
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x1
{64} //点阵IIC地址
};
Matrix display = Matrix(Addr, TYPE_COLOR); //TYPE_COLOR or TYPE_S2
void setup() {
Wire.begin();
display.setBrightness(255);
}
void loop() {
//Char*
display.setColor(0, 255, 255);
display.writeString("Welcome", 120, 0); //char*, time ,y
display.clearDisplay();
display.setColor(0, 0, 255);
//String 滚动方式:for循环加delay
String _buffer_data = "Analog:";
_buffer_data += analogRead(A0);
display.writeString(_buffer_data, 80, 1);//String, time ,y
display.clearDisplay();
}
#include <Microduino_Matrix.h>
uint8_t Addr[MatrixPix_X][MatrixPix_Y] = { //1x1
{64} //点阵IIC地址
};
Matrix display = Matrix(Addr, TYPE_S2); //TYPE_COLOR or TYPE_S2
void setup() {
Wire.begin();
display.setBrightness(255);
}
void loop() {
//Char*
display.writeString("Welcome", 120, 0); //char*, time ,y
display.clearDisplay();
//String 滚动方式:for循环加delay
String _buffer_data = "Analog:";
_buffer_data += analogRead(A0);
display.writeString(_buffer_data, 80, 1);//String, time ,y
display.clearDisplay();
}
其他 |