source: rtos_arduino/trunk/examples/NCESIoT_RTOS/OLED_Display12864/examples/OLED_Hello_World/OLED_Hello_World.ino@ 242

Last change on this file since 242 was 242, checked in by ertl-honda, 8 years ago

RTOSのサンプルを追加

File size: 588 bytes
Line 
1#include <Wire.h>
2#include <SeeedOLED.h>
3
4
5void setup()
6{
7 Wire.begin();
8 SeeedOled.init(); //initialze SEEED OLED display
9 DDRB|=0x21;
10 PORTB |= 0x21;
11
12 SeeedOled.clearDisplay(); //clear the screen and set start position to top left corner
13 SeeedOled.setNormalDisplay(); //Set display to normal mode (i.e non-inverse mode)
14 SeeedOled.setPageMode(); //Set addressing mode to Page Mode
15 SeeedOled.setTextXY(0,0); //Set the cursor to Xth Page, Yth Column
16 SeeedOled.putString("Hello World!"); //Print the String
17
18}
19
20void loop()
21{
22
23}
24
Note: See TracBrowser for help on using the repository browser.