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