Go to the documentation of this file.
27 #if defined(CONF_DMOTOR)
71 const void on()
const { direction(::
fwd); }
76 const void off()
const { direction(::
off); }
83 const void brightness(
const unsigned char level)
const { speed(level); }
85 const void speed(
const unsigned char speed)
const { (*ms)(speed); }
86 const void direction(
const MotorDirection dir)
const { (*md)(dir); }
88 void (*ms)(
unsigned char speed);
93 #warning Enable CONF_DMOTOR to use Lamp.H
const void off() const
Turn the Lamp off.
Interface: direct motor control.
Port
The RCX output pad to which the Lamp is connected.
const void brightness(const unsigned char level) const
Set the power to the lamp.
const void on() const
Turn the Lamp on.
MotorDirection
the motor directions
void motor_b_speed(unsigned char speed)
set motor B speed
void motor_b_dir(MotorDirection dir)
set motor B direction to dir
void motor_a_speed(unsigned char speed)
set motor A speed
~Lamp()
destroy our lamp instance
void motor_c_speed(unsigned char speed)
set motor C speed
void motor_c_dir(MotorDirection dir)
set motor C direction to dir
Lamp(enum Port port)
construct a lamp connected to {port}
void motor_a_dir(MotorDirection dir)
set motor A direction to dir
Generated for brickOS C++ by
1.8.16