| Electronic Components Datasheet Search |
|
DEV-13628 Datasheet(PDF) 10 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13628 Datasheet(HTML) 10 Page - SparkFun Electronics |
|
10 / 12 page ![]() oled.setCursor(0, 0); oled.print("_`abcdefghijklmnopqrs"); oled.display(); delay(1000); oled.clear(PAGE); oled.setCursor(0, 0); oled.print("tuvwxyz{|}~"); oled.display(); delay(1000); // Demonstrate font 2. 10x16. Only numbers and '.' are defin ed. // This font looks like 7segment displays. // Lets use this bigish font to display readings from the // analog pins. for (int i=0; i<25; i++) { oled.clear(PAGE); // Clear the display oled.setCursor(0, 0); // Set cursor to topleft oled.setFontType(0); // Smallest font oled.print("A0:"); // Print "A0" oled.setFontType(2); // 7segment font oled.print(analogRead(A0)); // Print a0 reading oled.setCursor(0, 16); // Set cursor to topmiddlel eft oled.setFontType(0); // Repeat oled.print("A1:"); oled.setFontType(2); oled.print(analogRead(A1)); oled.setCursor(0, 32); oled.setFontType(0); oled.print("A7:"); oled.setFontType(2); oled.print(analogRead(A7)); oled.display(); delay(100); } // Demonstrate font 3. 12x48. Stopwatch demo. oled.setFontType(3); // Use the biggest font int ms =0; int s =0; while (s <= 50) { oled.clear(PAGE); // Clear the display oled.setCursor(0, 0); // Set cursor to topleft if (s < 10) oled.print("00"); // Print "00" if s is 1 digit else if (s < 100) oled.print("0"); // Print "0" if s is 2 digits oled.print(s); // Print s's value oled.print(":"); // Print ":" oled.print(ms); // Print ms value oled.display(); // Draw on the screen ms++; // Increment ms if (ms >= 10) // If ms is >= 10 { ms =0; // Set ms back to 0 s++; // and increment s } delay(1); } } // Center and print a small title Page 10 of 12 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |