public class PlatformManager extends Object
This class provides static methods to configure the Pi4J library's default platform. Pi4J supports the following platforms: RaspberryPi, BananaPi, BananaPro, Odroid.
| Constructor and Description |
|---|
PlatformManager() |
| Modifier and Type | Method and Description |
|---|---|
protected static Platform |
getDefaultPlatform()
Internal method to get the default platform.
|
static Platform |
getPlatform()
Get the selected system platform.
|
static void |
setPlatform(Platform platform)
Set the runtime platform for Pi4J to use.
|
public PlatformManager()
public static Platform getPlatform()
public static void setPlatform(Platform platform) throws PlatformAlreadyAssignedException
platform - platform to assignPlatformAlreadyAssignedExceptionprotected static Platform getDefaultPlatform()
Copyright © 2012–2019 Pi4J. All rights reserved.