<?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=Lesson_2--Microduino_OLED_Usage</id>
		<title>Lesson 2--Microduino OLED Usage - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Lesson_2--Microduino_OLED_Usage"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;action=history"/>
		<updated>2026-04-21T11:32:08Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1655&amp;oldid=prev</id>
		<title>Pkj：/* Program */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1655&amp;oldid=prev"/>
				<updated>2014-03-29T07:41:09Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Program&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年3月29日 (六) 07:41的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot; &gt;第41行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第41行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Program==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Program==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Download program：&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'''[[File&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;oled_project&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;zip]]'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Download program：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;https&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//github&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_OLED&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Experiment 1==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Experiment 1==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1297&amp;oldid=prev</id>
		<title>2014年3月4日 (二) 12:47 Pkj</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1297&amp;oldid=prev"/>
				<updated>2014-03-04T12:47:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年3月4日 (二) 12:47的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Language|第二课--Microduino OLED使用}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1294&amp;oldid=prev</id>
		<title>Pkj：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | ==Objective== Learn the Microduino OLED and master how to use the library to derive the OLED. ==Equipment== *'''Microduino-OLED''' Microduino...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_2--Microduino_OLED_Usage&amp;diff=1294&amp;oldid=prev"/>
				<updated>2014-03-04T12:34:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== Learn the Microduino OLED and master how to use the library to derive the OLED. ==Equipment== *&amp;#039;&amp;#039;&amp;#039;&lt;a href=&quot;/index.php/Microduino-OLED&quot; title=&quot;Microduino-OLED&quot;&gt;Microduino-OLED&lt;/a&gt;&amp;#039;&amp;#039;&amp;#039; Microduino...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
Learn the Microduino OLED and master how to use the library to derive the OLED.&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-OLED]]'''&lt;br /&gt;
Microduino-Oled is a 0.96 inch 12864 OLED display module based on SSD1306. It uses I2C interface, and 3.3V power. The pixel is 128 * 64 (128 columns * 64 rows).&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-Core+]]'''&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
&lt;br /&gt;
*Other equipments：&lt;br /&gt;
**OLED adapter cable     one&lt;br /&gt;
**DuPont line            four&lt;br /&gt;
**USB cable              one&lt;br /&gt;
&lt;br /&gt;
==IIC communication==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;1&amp;quot; |OLED||Core||Core+&lt;br /&gt;
|-&lt;br /&gt;
|SDA||A4||D20 or A4&lt;br /&gt;
|-&lt;br /&gt;
|SCL||A5||D21 or A5&lt;br /&gt;
|-&lt;br /&gt;
|3V3||3V3||3V3&lt;br /&gt;
|-&lt;br /&gt;
|GND||GND||GND&lt;br /&gt;
|}&lt;br /&gt;
==Prepare work==&lt;br /&gt;
*【U8glib library'''[http://code.google.com/p/u8glib/ google download ]''' 】&lt;br /&gt;
*Put the downloaded library into the libraries folder of the Arduino IDE;&lt;br /&gt;
*Open the example program. If you have opened the Arduino IDE, need to close firstly, then open the example program from the u8glib library:&lt;br /&gt;
*Connect the OLED to circuit according to IIC connection method.&lt;br /&gt;
[[File:oled_yuanli.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
Download program：'''[[File:oled_project.zip]]'''&lt;br /&gt;
&lt;br /&gt;
==Experiment 1==&lt;br /&gt;
*Display character, including the specific character and the character changed according to data.&lt;br /&gt;
Grammar：&lt;br /&gt;
*The first line display &amp;quot;*_*Microduino*_*&amp;quot;；&lt;br /&gt;
*The second line display &amp;quot;Time：&amp;quot;；&lt;br /&gt;
*The third line display time calculated by funcion mills(), use the ms as unit, and map into the second unit, only keep two decimal.&lt;br /&gt;
*Grammar：&lt;br /&gt;
**u8g.setFont(XXX)uses to set font, no default font, must be defined.&lt;br /&gt;
**u8g.setPrintPos(X,Y) uses to set he positon of the specified character,X represents the horizontal position coordinate, Y represents longitudinal coordinates. The Y value can't be 0 in top line, and the value should be greater than the height of the font.&lt;br /&gt;
**u8g.print(XXX)uses to display character, static characters need to add &amp;quot; &amp;quot;, no need for change data;&lt;br /&gt;
**u8g.drawStr(X, Y,XXX) uses to display specified character, can't display changing data；&lt;br /&gt;
**u8g.setRot180()uses to font rotation, rotate character from 180 to 90, 270. The default value is 0;&lt;br /&gt;
**Change font and coordinates need to add fonts and coordinate function in front of the display function;&lt;br /&gt;
**When change font, need to find the font library in file u8g.h from U8glib\utility folder.&lt;br /&gt;
&lt;br /&gt;
==Experiment 2==&lt;br /&gt;
*Draw picture&lt;br /&gt;
Open &amp;quot;OLED_Paint&amp;quot; example program, select board type and use the serial to downlaod.&lt;br /&gt;
The experiment to realize how to draw a straight line, a solid, hollow, solid rectangular, hollow rectangular, apex angle bending rectangular, the system timing simulate the pointer of second hand.&lt;br /&gt;
*Grammar：&lt;br /&gt;
**u8g.drawLine(X,Y,M,N) uses to draw a straight line；&lt;br /&gt;
***X: starting horizontal position coordinates, Y: the starting point of the longitudinal coordinates, M: end horizontal position coordinates, N: the end of the longitudinal coordinate.&lt;br /&gt;
**u8g.drawDisc(X,Y,D) uses to draw a solid:&lt;br /&gt;
***X: horizontal coordinates, Y: longitudinal coordinate, D: diameter;&lt;br /&gt;
**u8g.drawCircle(X,Y,D) uses to draw a hollow:&lt;br /&gt;
***X: horizontal coordinates, Y: longitudinal coordinate, D: diameter;&lt;br /&gt;
**u8g.drawFrame(X,Y,I,W) uses to draw a hollow rectangular:&lt;br /&gt;
***X: horizontal coordinates, Y: longitudinal coordinate, I: length, W: wide;&lt;br /&gt;
**u8g.drawBox(X,Y,I,W) uses to draw a solid rectangular；&lt;br /&gt;
***X: horizontal coordinates, Y: longitudinal coordinate, I: long, W: wide&lt;br /&gt;
**u8g.drawRFrame(X,Y,I,W,B) uses to draw a apex angle bending rectangular；&lt;br /&gt;
***X: horizontal coordinates, Y: longitudinal coordinate, I: long, W: wide&lt;br /&gt;
&lt;br /&gt;
==Experiment 3==&lt;br /&gt;
*Display chinese characters, images and dynamic text:&lt;br /&gt;
&lt;br /&gt;
**Display character using library. The images and chinese characters need to modulo then to print.&lt;br /&gt;
Modulo software：'''[[File:PCtolCD.zip]]'''&lt;br /&gt;
&lt;br /&gt;
*Take the chinese character as example：&lt;br /&gt;
&lt;br /&gt;
**Make chinese character modulo code：&lt;br /&gt;
Step 1：Open the modulo software, select the mode &amp;quot;Character mode&amp;quot;；&lt;br /&gt;
[[File:set_1.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
Step 2：Set font size as 32*32；&lt;br /&gt;
[[File:set_2.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
Step 3：Input chinese character, you can choose font；&lt;br /&gt;
[[File:set_3.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
Step 4：Set modulo format；&lt;br /&gt;
[[File:set_4.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
[[File:set_5.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
Step 5：Set the code;&lt;br /&gt;
[[File:set_6.jpg|800px|thumb|center|Microduino-OLED]]&lt;br /&gt;
Step 6：Use the code to replace the character.&lt;br /&gt;
&lt;br /&gt;
Grammar：&lt;br /&gt;
*u8g.drawXBMP( X, Y, I, W, XXXX);&lt;br /&gt;
**X: horizontal coordinates, Y: longitudinal coordinate, I: long, W: wide, XXXX: Chinese character code name of the array.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
http://v.youku.com/v_show/id_XNjc1NTc1MTE2.html&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>