Class Commands::LightSensor
In: lib/commands/light_sensor.rb
Parent: Object

Implements the "Light Sensor" block in NXT-G

Methods

Attributes

comparison  [RW] 
generate_light  [R] 
port  [R] 
trigger_point  [RW] 

Public Class methods

Public Instance methods

Determines if the sensor’s own LED is on or not (true or false)

intensity of light detected 0-100 in %

returns true or false based on comparison and trigger point

attempt to return the input_value requested

returns the raw value of the sensor

sets up the sensor port

[Validate]