Difference between revisions of "OLED Display 1.12"

From
Jump to: navigation, search
(Liens externes)
(Code)
Line 21: Line 21:
 
=== Code ===
 
=== Code ===
 
[https://github.com/Seeed-Studio/OLED_Display_96X96/blob/master/examples/OLED_Hello_World/OLED_Hello_World.ino OLED_Hello_World.ino]
 
[https://github.com/Seeed-Studio/OLED_Display_96X96/blob/master/examples/OLED_Hello_World/OLED_Hello_World.ino OLED_Hello_World.ino]
 +
 +
<pre>
 +
/*
 +
  The new OLED module drive IC has two version,
 +
  1. SH1107G
 +
  2. SSD1327
 +
 
 +
  Change the paramater of the drive IC name to init the module.
 +
  **
 +
  ** SeeedGrayOled.init(SSD1327);  // SSD1327 or SH1107G
 +
  **
 +
  Copyright - Seeedstudio
 +
  Author - lambor
 +
  Date - 4/24/2017
 +
*/
 +
 +
#include <Wire.h>
 +
#include <SeeedGrayOLED.h>
 +
#include <avr/pgmspace.h>
 +
 +
 +
void setup()
 +
{
 +
  Wire.begin();
 +
  SeeedGrayOled.init(SH1107G);            //initialize SEEED OLED display
 +
  SeeedGrayOled.clearDisplay();    //Clear Display.
 +
  SeeedGrayOled.setNormalDisplay(); //Set Normal Display Mode
 +
  SeeedGrayOled.setVerticalMode();  // Set to vertical mode for displaying text
 +
 
 +
  for(char i=0; i < 12 ; i++)
 +
  {
 +
  SeeedGrayOled.setTextXY(i,0);  //set Cursor to ith line, 0th column
 +
  SeeedGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
 +
  SeeedGrayOled.putString("Hello World"); //Print Hello World
 +
  }
 +
}
 +
 +
void loop()
 +
{
 +
 
 +
}
 +
</pre>
  
 
==== Liens internes ====
 
==== Liens internes ====

Revision as of 00:24, 9 January 2018

Grove - OLED Display 1.12 inches (Seeed-Studio)

Caractéristiques

16 color grayscale
96×96 dot matrix OLED

Support

Supports both Normal and Inverse Color Display
Supports Continuous Horizontal Scrolling

OLED Display 96x96 recto.jpg OLED Display 96x96 verso.jpg

Drivers

OLED Display: LY120-96096
Driver IC: SSD1327Z

Voltage

Operating Voltage: 3.3~5V

Code

OLED_Hello_World.ino

	/*
	  The new OLED module drive IC has two version,
	  1. SH1107G
	  2. SSD1327
	  
	  Change the paramater of the drive IC name to init the module.
	  **
	  ** SeeedGrayOled.init(SSD1327);  // SSD1327 or SH1107G
	  **
	  Copyright - Seeedstudio
	  Author - lambor
	  Date - 4/24/2017
	*/

	#include <Wire.h>
	#include <SeeedGrayOLED.h>
	#include <avr/pgmspace.h>


	void setup()
	{
	  Wire.begin();
	  SeeedGrayOled.init(SH1107G);             //initialize SEEED OLED display
	  SeeedGrayOled.clearDisplay();     //Clear Display.
	  SeeedGrayOled.setNormalDisplay(); //Set Normal Display Mode
	  SeeedGrayOled.setVerticalMode();  // Set to vertical mode for displaying text
	  
	  for(char i=0; i < 12 ; i++)
	  {
	  SeeedGrayOled.setTextXY(i,0);  //set Cursor to ith line, 0th column
	  SeeedGrayOled.setGrayLevel(i); //Set Grayscale level. Any number between 0 - 15.
	  SeeedGrayOled.putString("Hello World"); //Print Hello World
	  }
	}

	void loop()
	{
	  
	}

Liens internes

index wiki.ows.cloud (arduino)
OLED Display 0.96 inches
4-Digital Display
Base Shield V2
Arduino UNO REV3


Liens externes

Librairies https://github.com/Seeed-Studio/OLED_Display_96X96