HINT: Project use GitFlow (https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) Short: Current development is done in "develop" branch and "master" includes the current release!
This driver connects the "SenseHat" with AndroidThings environment.
It includes the following features:
- LED 8x8 Matrix: draw pixels in differnt colors; draw text in differnt colors
- Joystick: detects movement and button press
- Temperature and Humidity: reads temperature and humidity
- OPEN: other sensors
Include the "SenseHatDriverLibrary" to your AndroidThings project.
settings.gradle
include ':sensehatdriverdemo', ':sensehatdriverlibrary'
HomeActivity.java
SensorManager sensorManager = (SensorManager) this.getSystemService(Context.SENSOR_SERVICE);
SenseHat senseHat = SenseHat.init(sensorManager);
LedMatrix ledMatrix = senseHat.getLedMatrix();
ledMatrix.draw(Color.RED);
senseHat.addJoystickListener(new JoystickListener() {
@Override
public void stickMoved(JoystickDirectionEnum direction) throws IOException {
...
}
});
see Release-Page: https://github.com/EON-COM/SenseHatDriverForAndroidThings/releases
- AndroidThings Homepage: https://developer.android.com/things/index.html
- "offical" AndroidThings SenseHatDriver: https://github.com/androidthings/contrib-drivers/blob/master/sensehat/README.md
- SenseHat: https://www.raspberrypi.org/products/sense-hat/
- SenseHat KURA (Java implementation): https://github.com/eclipse/kura/tree/develop/kura/examples/org.eclipse.kura.raspberrypi.sensehat
- SenseHat (C# implementation): https://www.hackster.io/laserbrain/windows-iot-sense-hat-10cac2