代码搜索结果
找到约 3,982 项符合
Sensor 的代码
sensor.java~4~
package securitysystem;
public interface Sensor {
}
sensor.java~9~
package securitysystem;
//定义传感器抽象类:
public abstract class Sensor {
public String position;//所安装位置
}
sensor.java~1~
package securitysystem;
public interface Sensor {
}
sensor.java~7~
package securitysystem;
public abstract class Sensor {
public String position;
}
sensor.java~5~
package securitysystem;
public abstract Sensor {
}
sensor.java~6~
package securitysystem;
public abstract class Sensor {
}
vib-sensor.c
/*
* Copyright (c) 2005, Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide
button-sensor.h
#ifndef __BUTTON_SENSOR_H__
#define __BUTTON_SENSOR_H__
#include "lib/sensors.h"
extern const struct sensors_sensor button_sensor;
#define BUTTON_SENSOR "Button"
void button_press(void);
#endif /
pir-sensor.h
#ifndef __PIR_SENSOR_H__
#define __PIR_SENSOR_H__
#include "lib/sensors.h"
extern const struct sensors_sensor pir_sensor;
#define PIR_SENSOR "PIR"
void pir_sensor_changed(int strength);
#endif /*
button-sensor.c
#include "dev/button-sensor.h"
const struct sensors_sensor button_sensor;
/*---------------------------------------------------------------------------*/
void
button_press(void)
{
sensors_changed