Electronic Components Datasheet Search
  English  ▼

X  

DEV-13628 Datasheet(PDF) 9 Page - SparkFun Electronics

Part # DEV-13628
Description  Photon OLED Shield Hookup Guide
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SPARKFUN [SparkFun Electronics]
Direct Link  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-13628 Datasheet(HTML) 9 Page - SparkFun Electronics

Back Button DEV-13628 Datasheet HTML 4Page - SparkFun Electronics DEV-13628 Datasheet HTML 5Page - SparkFun Electronics DEV-13628 Datasheet HTML 6Page - SparkFun Electronics DEV-13628 Datasheet HTML 7Page - SparkFun Electronics DEV-13628 Datasheet HTML 8Page - SparkFun Electronics DEV-13628 Datasheet HTML 9Page - SparkFun Electronics DEV-13628 Datasheet HTML 10Page - SparkFun Electronics DEV-13628 Datasheet HTML 11Page - SparkFun Electronics DEV-13628 Datasheet HTML 12Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 9 / 12 page
background image
()); 
// Draw the center line
    oled.rectFill(oled.getLCDWidth()/2 ­ 1, 0, 2, oled.getLCDH
eight());
// Draw the Paddles:
    oled.rectFill(paddle0_X, paddle0_Y, paddleW, paddleH);
    oled.rectFill(paddle1_X, paddle1_Y, paddleW, paddleH);
// Draw the ball:
    oled.circle(ball_X, ball_Y, ball_rad);
// Actually draw everything on the screen:
    oled.display();
delay(25);  // Delay for visibility
  } 
delay(1000);
} 
void textExamples()
{ 
printTitle("Text!", 1);
// Demonstrate font 0. 5x8 font
  oled.clear(PAGE);     // Clear the screen
  oled.setFontType(0);  // Set font to type 0
  oled.setCursor(0, 0); // Set cursor to top­left
// There are 255 possible characters in the font 0 type.
// Lets run through all of them and print them out!
for (int i=0; i<=255; i++)
  { 
// You can write byte values and they'll be mapped to
// their ASCII equivalent character.
    oled.write(i);  // Write a byte out as a character
    oled.display(); // Draw on the screen
delay(10);      // Wait 10ms
// We can only display 60 font 0 characters at a time.
// Every 60 characters, pause for a moment. Then clear
// the page and start over.
if ((i%60 == 0) && (i != 0))
    { 
delay(500);           // Delay 500 ms
      oled.clear(PAGE);     // Clear the page
      oled.setCursor(0, 0); // Set cursor to top­left
    } 
  } 
delay(500);  // Wait 500ms before next example
// Demonstrate font 1. 8x16. Let's use the print function
// to display every character defined in this font.
  oled.setFontType(1);  // Set font to type 1
  oled.clear(PAGE);     // Clear the page
  oled.setCursor(0, 0); // Set cursor to top­left
// Print can be used to print a string to the screen:
  oled.print(" !\"#$%&'()*+,­./01234");
  oled.display();       // Refresh the display
delay(1000);          // Delay a second and repeat
  oled.clear(PAGE);
  oled.setCursor(0, 0);
  oled.print("56789:;<=>?@ABCDEFGHI");
  oled.display();
delay(1000);
  oled.clear(PAGE);
  oled.setCursor(0, 0);
  oled.print("JKLMNOPQRSTUVWXYZ[\\]^");
  oled.display();
delay(1000);
  oled.clear(PAGE);
Page 9 of 12



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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