27 #if defined(CONF_DMOTOR)
93 #warning Enable CONF_DMOTOR to use Lamp.H
Lamp(enum Port port)
construct a lamp connected to {port}
Port
The RCX output pad to which the Lamp is connected.
void motor_a_speed(unsigned char speed)
set motor A speed
void motor_b_dir(MotorDirection dir)
set motor B direction to dir
kernel configuration file
const void on() const
Turn the Lamp on.
const void direction(const MotorDirection dir) const
void motor_c_dir(MotorDirection dir)
set motor C direction to dir
~Lamp()
destroy our lamp instance
void(* ms)(unsigned char speed)
void motor_a_dir(MotorDirection dir)
set motor A direction to dir
const void brightness(const unsigned char level) const
Set the power to the lamp.
const void off() const
Turn the Lamp off.
void(* md)(const MotorDirection dir)
MotorDirection
the motor directions
void motor_b_speed(unsigned char speed)
set motor B speed
const void speed(const unsigned char speed) const
void motor_c_speed(unsigned char speed)
set motor C speed