Reflect change in library
This commit is contained in:
parent
600e086ace
commit
4e525f160a
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ All text above must be included in any redistribution.
|
|||
import os
|
||||
from math import cos, sin, pi, floor
|
||||
import pygame
|
||||
from adafruit_circuitpython_rplidar import CPythonRPLidar
|
||||
from adafruit_circuitpython_rplidar import RPLidar
|
||||
|
||||
# Set up pygame and the display
|
||||
os.putenv('SDL_FBDEV', '/dev/fb1')
|
||||
|
|
@ -27,7 +27,7 @@ pygame.display.update()
|
|||
|
||||
# Setup the RPLidar
|
||||
PORT_NAME = '/dev/ttyUSB0'
|
||||
lidar = CPythonRPLidar(PORT_NAME)
|
||||
lidar = RPLidar(PORT_NAME)
|
||||
|
||||
# used to scale data to fit on the screen
|
||||
max_distance = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue