<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=The_Use_of_OLED</id>
		<title>The Use of OLED - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=The_Use_of_OLED"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=The_Use_of_OLED&amp;action=history"/>
		<updated>2026-04-21T16:05:21Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=The_Use_of_OLED&amp;diff=10849&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| The Use of OLED }} {| style=&quot;width: 800px;&quot; |- | ==Objective== To know Microduino-OlED and learn how to use libraries to drive the OLED screen.   ==Equipment== {|c...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=The_Use_of_OLED&amp;diff=10849&amp;oldid=prev"/>
				<updated>2015-10-20T02:26:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| The Use of OLED }} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== To know Microduino-OlED and learn how to use libraries to drive the OLED screen.   ==Equipment== {|c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| The Use of OLED }}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
To know Microduino-OlED and learn how to use libraries to drive the OLED screen. &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-CoreUSB]]||1||Core board &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-OLED]]||1||OLED display screen &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
 [[File:ble_OLED.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
Program download: [https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_OLED Microduino_OLED]&lt;br /&gt;
&lt;br /&gt;
==Experiment One==&lt;br /&gt;
*Display characters including specified and data changed characters.&lt;br /&gt;
Open OLED_Text test program, select the right board(CoreUSB) and download via the serial port.&lt;br /&gt;
Result: &lt;br /&gt;
*The specified character &amp;quot;*_*Microduino*_*&amp;quot; is displayed on the first line;&lt;br /&gt;
* The specified character &amp;quot;Time：&amp;quot;is displayed on the second line;&lt;br /&gt;
*The third shows mills() function. Here we adopt millisecond as the time unit and keep two decimal fractions.  &lt;br /&gt;
*Grammar: &lt;br /&gt;
**u8g.setFont(XXX) function is used for setting font. If there is no default font, you have to define one. &lt;br /&gt;
**u8g.setPrintPos(X,Y) is used for specified coordinate. &amp;quot;X&amp;quot; means horizontal coordinate and &amp;quot;Y&amp;quot; means vertical coordinate. The Y values on the top line cannot be &amp;quot;0&amp;quot; and must bigger than the height of the display font; &lt;br /&gt;
**u8g.print(XXX) is for displaying characters. Static characters have to be noted with””and the changed data needn't;  &lt;br /&gt;
**u8g.drawStr(X, Y,XXX) can be used for displaying specified characters and can't be adopted for displaying changed data; &lt;br /&gt;
**u8g.setRot180() is for font rotation. You can change the rotation angle from 180 to 90 or 270. The default is 0.&lt;br /&gt;
**If you want to change the font or coordinate, you need to re-add font or coordinate functions before the displayed functions. &lt;br /&gt;
**Changing font can refer to the file u8g.h under U8glib\utility. &lt;br /&gt;
&lt;br /&gt;
[[File:OLED_TEXT.jpg|600px|center|Microduino-OLED]]&lt;br /&gt;
&lt;br /&gt;
==Experiment Two==&lt;br /&gt;
*Drawing picture&lt;br /&gt;
Open OLED_Paint test program. (A straight line, a solid round, round, rectangular hollow, hollow rectangular or a rectangular angle as well as apex angle bending rectangular can be achieved here.) We adopt system timing to simulate the second pointer of the pointer meter. &lt;br /&gt;
*Grammar:　&lt;br /&gt;
**u8g.drawLine(X,Y,M,N) is used for drawing straight line;&lt;br /&gt;
***X：Starting horizontal coordinate.  Y：Starting vertical coordinate.  M：End vertical coordinate. &lt;br /&gt;
**u8g.drawDisc(X,Y,D) is used for drawing solid round. &lt;br /&gt;
***X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter. &lt;br /&gt;
**u8g.drawCircle(X,Y,D) is for drawing hollow round;&lt;br /&gt;
*** X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter.&lt;br /&gt;
**u8g.drawFrame(X,Y,I,W) is for drawing hollow rectangular; &lt;br /&gt;
*** X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter. L: Length. W: Width. &lt;br /&gt;
**u8g.drawBox(X,Y,I,W) is for drawing solid rectangular; &lt;br /&gt;
*** X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter. L: Length. W: Width.&lt;br /&gt;
**u8g.drawRFrame(X,Y,I,W,B) is for drawing apex angle bending rectangular; &lt;br /&gt;
*** X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter. L: Length. W: Width.&lt;br /&gt;
[[File: OLED_Paint.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
&lt;br /&gt;
==Experiment Three==&lt;br /&gt;
&lt;br /&gt;
*Display of Chinese characters, pictures and dynamic text: &lt;br /&gt;
&lt;br /&gt;
**Character display can be printed by calling the library and the pictures and Chinese characters have to be printed out by modulus operation  &lt;br /&gt;
&lt;br /&gt;
Modulus operation will need the Windows: '''[[File:PCtolCD.zip]]'''&lt;br /&gt;
&lt;br /&gt;
*Take Chinese character as an example: &lt;br /&gt;
&lt;br /&gt;
**Make Chinese character modulus code: &lt;br /&gt;
Step1: Open modulus software and choose character mode:&lt;br /&gt;
 [[File:set_1.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
Step 2: Set 32*32 font; &lt;br /&gt;
[[File:set_2.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
Step 3: Enter Chinese character and you can select font; &lt;br /&gt;
[[File:set_3.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
Step 4: Set modulus format; &lt;br /&gt;
[[File:set_4.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
[[File:set_5.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
Step 5: Generate code after setting. &lt;br /&gt;
[[File:set_6.jpg|800px|center|Microduino-OLED]]&lt;br /&gt;
Step6: Change the original Chinese character code to the generated code. &lt;br /&gt;
Grammar: &lt;br /&gt;
*u8g.drawXBMP( X, Y, I, W, XXXX);&lt;br /&gt;
** X：Horizontal coordinate. Y: Vertical coordinate. D: Diameter. L: Length. W: Width. XXXX: Array name of Chinese character code.   &lt;br /&gt;
&lt;br /&gt;
[[File: OLED_Writing.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>