本文整理匯總了PHP中phodevi::unsupported_sensors方法的典型用法代碼示例。如果您正苦於以下問題:PHP phodevi::unsupported_sensors方法的具體用法?PHP phodevi::unsupported_sensors怎麽用?PHP phodevi::unsupported_sensors使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類phodevi
的用法示例。
在下文中一共展示了phodevi::unsupported_sensors方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: run
public static function run($r)
{
pts_client::$display->generic_heading('Supported Sensors');
foreach (phodevi::supported_sensors() as $sensor) {
echo phodevi::sensor_name($sensor) . ': ' . phodevi::read_sensor($sensor) . ' ' . phodevi::read_sensor_unit($sensor) . PHP_EOL;
}
pts_client::$display->generic_heading('Unsupported Sensors');
foreach (phodevi::unsupported_sensors() as $sensor) {
echo '- ' . phodevi::sensor_name($sensor) . PHP_EOL;
}
echo PHP_EOL;
}
示例2: run
public static function run($r)
{
pts_client::$display->generic_heading('Supported Sensors');
foreach (phodevi::supported_sensors() as $sensor) {
$supported_devices = call_user_func(array($sensor[2], 'get_supported_devices'));
if ($supported_devices === NULL) {
self::print_sensor($sensor, NULL);
continue;
}
foreach ($supported_devices as $device) {
self::print_sensor($sensor, $device);
}
}
pts_client::$display->generic_heading('Unsupported Sensors');
foreach (phodevi::unsupported_sensors() as $sensor) {
echo '- ' . phodevi::sensor_name($sensor) . PHP_EOL;
}
echo PHP_EOL;
}
示例3: cache_hardware_calls
public static function cache_hardware_calls()
{
phodevi::system_hardware(true);
phodevi::supported_sensors();
phodevi::unsupported_sensors();
}