本文整理汇总了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();
}