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

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

RTOSのサンプルを追加

File size: 595 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
14 SeeedOled.setHorizontalMode(); //Set addressing mode to Horizontal Mode
15 SeeedOled.putString("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); //Print String (ASCII 32 - 126 )
16
17}
18
19void loop()
20{
21
22}
23
24
Note: See TracBrowser for help on using the repository browser.