Android Integration
Bring lighthouse to your next Android Project
In just 7 lines of code, you can fully visualize the data from lighthouse.
Get the library
Add the JitPack repository to your root build.gradle at the end of repositories
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }Add the dependency
dependencies { implementation 'com.github.curio-lighthouse:lighthouse:Tag' }
Don't forget to change the "Tag" placeholder with the build from JitPack.
Time to use it
Create the LiDAR and LidarDisplay Objects
LIDAR myLidar; LidarDisplay lidarDisplay;Pass the Activity to the LidarDisplay Constructor
lidarDisplay = new LidarDisplay(this);Pass the Activity and LidarDisplay to the LDAR constructor
myLidar = new LIDAR(this, lidarDisplay);Connect and Start lighthouse
if (myLidar.connectToLIDAR()) { myLidar.startLIDAR(); }
Boom!
Put all together in the MainActivity