代码搜索结果
找到约 3,108 项符合
Sensor 的代码
sensor-query.h
#ifndef sensor_query_h_
#define sensor_query_h_
#include
#include
#include
#include
#include
#include
#include
#include
#
sensor.c
/**************************************************************************************************
* FILENAME
* time
disttest.java
/*
DistTest.java
(c) 2007 Nils Springob
*/
import nanovm.nibo.drivers.*;
import nanovm.util.Formatter;
class DistTest {
public static void handleSensor(int sensor, in
pt-doc.txt
/**
\defgroup pt Protothreads
Protothreads are a type of lightweight stackless threads designed for
severly memory constrained systems such as deeply embedded systems or
sensor network nodes. P
speedtest.java
import lejos.nxt.*;
public class SpeedTest {
static final int TOTALTIME = 60000;
public static void main(String [] args) throws Exception {
byte A = 0;
LightSensor ls = new LightSensor(Sensor
colordetector.java
import lejos.nxt.*;
/**
* For testing the HiTechnic color sensor (see lejos.nxt.ColorSensor).
* @author BB
*/
public class ColorDetector {
final static int INTERVAL = 200; // millisecond
i2c.c
/*
* This file implements the software-based I2C for accessing I2C
* devices via the sensor ports.
*/
#include "i2c.h"
#include "AT91SAM7.h"
#include "interrupts.h"
#include "aic.h"
#include "sys
tiltsensor.java
package lejos.nxt;
/**
* Abstraction for a Mindsensors (and possibly HiTechnic)
* acceleration (tilt) sensor.
*
*/
public class TiltSensor extends I2CSensor {
byte[] buf = new byte[2];
publ
touchsensor.java
package lejos.nxt;
/**
* Abstraction for a NXT touch sensor.
* Also works with RCX touch sensors.
*
*/
public class TouchSensor implements SensorConstants {
ADSensorPort port;
/**
* Create
colorsensor.java
package lejos.nxt;
/**
* HiTechnic color sensor.
* www.hitechnic.com
*/
public class ColorSensor extends I2CSensor {
byte[] buf = new byte[2];
public ColorSensor(I2CPort port)
{