Line | |
---|
1 | #include <Wire.h>
|
---|
2 | #include <SeeedOLED.h>
|
---|
3 |
|
---|
4 |
|
---|
5 | void 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 |
|
---|
20 | void loop()
|
---|
21 | {
|
---|
22 |
|
---|
23 | }
|
---|
24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.