text: import time
  
  import Adafruit_GPIO.SPI as SPI
  import Adafruit_SSD1306
  
  from PIL import Image
  
  
  # Raspberry Pi pin configuration:
  RST = 24
  # Note the following are only used with SPI:
  DC = 23
  SPI_PORT = 0
  SPI_DEVICE = 0
  
  # Beaglebone Black pin configuration:
  def eyes():
      # 128x32 display with hardware I2C:
      disp = Adafruit_SSD1306.SSD1306_128_32(rst=RST)
      # Initialize library.
      disp.begin()
      # Clear display.
      disp.clear()
      disp.display()
  
      # Load image based on OLED display height.  Note that image is converted to 1 bit color.
      image = Image.open('eye.png').convert('1')
  
  # Alternatively load a different format image, resize it, and convert to 1 bit color.
  #image = Image.open('happycat.png').resize((disp.width, disp.height), Image.ANTIALIAS).convert('1')
  
      # Display image.
      disp.image(image)
      disp.display()
  
  eyes()
  