     break;
   case REGISTER(LIGHT_SENSOR):
     value = analogRead(PIN_ANALOG_LIGHT_SENSOR);
-    Wire.write((byte *)(&value), sizeof(value));
+    writeWord(value);
     break;
   case REGISTER(ENVIRONMENT_SENSOR) + ENVIRONMENT_SENSOR_TEMPERATURE:
     Wire.write(environment_temperature);

    // TODO: halt arm servos
    break;
  case COMMAND_MEASURE_ENVIRONMENT:
    BUSY(ENVIRONMENT_SENSOR,); // do not "return" if not ready, because it's initial status
    environment_temperature = (byte)environment_sensor.readTemperature();
    environment_humidity = (byte)environment_sensor.readHumidity();
    READY(ENVIRONMENT_SENSOR);
    break;
  case COMMAND_SLEEP:
    attachMotor(false);


#include "bb.h"
#include "music.h"

Servo pan, tilt;
Servo left, right;
