魔方内置两种指示灯。一种位于魔方底部,由 10 个 LED 组成,称为副灯;另一种位于魔方顶部,由 5 个大功率 LED 组成,称为主灯。默认状态下,底部指示灯随机闪烁,可以通过模式(MODE) 命令 关闭 (OFF) 或永久打开 (ON),可设置 R (随机)、P (永久) 或 D (熄灭)。默认状态下,顶部指示灯常亮 (MODE 1) ,它也可以被关闭 (MODE 2)、逆时针依序发亮 (MODE 3)、顺时针依序发亮 (MODE 4) 或闪烁 (MODE 5)。请注意,每个命令可输入双字符缩写代替。
您也可以拍手或拍打桌子上的物体切换模式。通过这种方式操作时,必须分别记录每个模式的拍打方式,这些方式是开关指示灯的“密码”。我们在后面的“拍打方式编程”中再谈。
状态 (STATUS) 命令用于读取魔方当前状态: 起始阈值 (Attack)、衰减阈值 (Decay)、通知时长 (Notification)、延迟系数 (Speed) 和模式 (Mode)。所有列出的参数都可以通过输入 DEFAULT 来重置默认状态,我们会在后面的“高级命令”中详谈这些参数。
魔方内置加速计 MEMS 传感器,它检测 X、Y 和 Z 轴的重力加速度,从而感知魔方的角度位置。输入 ACCEL,可以读取魔方当前位置。ACCEL_LOOP 命令以无限循环方式执行相同的操作,您可以看到魔方旋转和移动过程中,这些参数的变化。循环可通过发送字符 Q 终止 (这是唯一不需要 <CR> 和 <LF> 就可以发出的命令)。
正常操作期间,魔方每次转到新位置时发送位置更改信息。试着翻转一下魔方,它将显示‘Cube Left’ (即魔方的左面朝下放置)、‘Cube Right’、‘Cube Bottom’等信息。此外,每种模式通过拍打方式改变后,将显示“Clap 1” (即拍打方式 1 被魔方识别) 、“Clap 2” 等。两个选项都可通过 MODE N 关闭,第一个选项可通过 MODE S (Side) 打开,第二个选项可以通过 MODE C (Clap) 打开。
There are two lights inside the cube, the lower one, which employs 10 LED's at the bottom of the cube, and the main one, with 5 high power LED's at the top. The lower one blinks randomly by default, but it can be turned OFF or permanently ON by command MODE, followed by R (Random), P (Permanent) or D (Dark). The top light is ON by default (which is MODE 1), and it can be switched OFF (MODE 2), rotating CCW (MODE 3), rotating CW (MODE 4), or blinking (MODE 5). Please note that every command can be replaced by typing its two-character abbreviation.
You can also switch the mode by clapping your hands, or by beating with some object on your table. To perform this, you must record your patterns for every mode separately, and these patterns will be your "passwords" for turning lights on and off. See next PATTERN PROGRAMMING for details.
Command STATUS is used to read the current status of the cube: Attack threshold, Decay threshold, Notification period, Speed and Mode. All listed parameters can be reset to their default state by typing DEFAULT and details can be found in ADVANCED COMMAND.
Inside the cube there is an accelerometer, MEMS sensor which senses gravitational acceleration for X, Y and Z axis, and thus the angular position of the cube. By typing ACCEL, you can read the current position of the cube. Command ACCEL_LOOP does the same thing in the endless loop, so you can watch how those parameters change while you are rotating and moving the cube. The loop can be terminated by sending character Q (this is the only command that can be issued without <CR> and <LF>).
Try turning it and it will communicate ‘Cube Left’ (which means ‘Cube Left Side Down’), ‘Cube Right’, ‘Cube Bottom’ and so on. Also, after every mode change by clapping, it will communicate ‘Clap 1’ (which stands for ‘Claping Pattern 1 Recognized’), ‘Clap 2’ and so on. Both options can be switched OFF by command MODE N, and the first one can be switched on by MODE S (Side), and the another one by MODE C (Clap).