import bluePoV
import pygame

x,y = (480,64)
MAC = "00:00:00:00:00:00"

pygame.init()
pygame.display.set_mode((x,y))

s = pygame.display.get_surface()

driver = bluePoV.Driver([x,y],1)

#driver.connect(MAC)

s.fill([0,255,0])

driver.blit(s)
pygame.display.flip()

input("Press any key... ")

import bluePoV
import pygame

x,y = (480,64)
MAC = "00:00:00:00:00:00"

pygame.init()
pygame.display.set_mode((x,y))

s = pygame.display.get_surface()

driver = bluePoV.Driver([x,y],depth=1,asServer=True)

#driver.connect(MAC)

s.fill([0,255,0])

driver.blit(s)
pygame.display.flip()

input("Press any key... ")

Throw an error if bluetooth is not supported on the py3 installation
Throw an error if bluetooth is not supported on the py3 installation

  import bluePoV
  import pygame
  
  x,y = (480,64)
  MAC = "00:00:00:00:00:00"
  
  pygame.init()
  pygame.display.set_mode((x,y))
  
  s = pygame.display.get_surface()
  
- driver = bluePoV.Driver([x,y],1)
+ driver = bluePoV.Driver([x,y],depth=1,asServer=True)
  
  #driver.connect(MAC)
  
  s.fill([0,255,0])
  
  driver.blit(s)
  pygame.display.flip()
  
  input("Press any key... ")
  
Throw an error if bluetooth is not supported on the py3 installation
## Code Before:
import bluePoV
import pygame

x,y = (480,64)
MAC = "00:00:00:00:00:00"

pygame.init()
pygame.display.set_mode((x,y))

s = pygame.display.get_surface()

driver = bluePoV.Driver([x,y],1)

#driver.connect(MAC)

s.fill([0,255,0])

driver.blit(s)
pygame.display.flip()

input("Press any key... ")

## Instruction:
Throw an error if bluetooth is not supported on the py3 installation
## Code After:
import bluePoV
import pygame

x,y = (480,64)
MAC = "00:00:00:00:00:00"

pygame.init()
pygame.display.set_mode((x,y))

s = pygame.display.get_surface()

driver = bluePoV.Driver([x,y],depth=1,asServer=True)

#driver.connect(MAC)

s.fill([0,255,0])

driver.blit(s)
pygame.display.flip()

input("Press any key... ")
