Initialise () eye to DIN () CS () CLK () block is a stack block available in Humanoid Robot extension for evive and other Arduino boards. This block defines the PWM pins to which the DIN (Data Input Pin), CS (Chipset Pin), and CL (Clock Pin) of the 8 * 8 Dot Matrix LED are connected.
Input Parameters
- Drop down to choose between left and right LED matrices.
- The next three drop-downs are to select the channels to which the pins are connected. By default, the values are set to 12, 10, and 11.
Note: This block is available in both Stage and Upload mode.
Example
Here, in the given script, the eyes i.e. the 8 * 8 LED Matrix of humanoid will display the heart.
- Define PWM pins for the pins connected to the left eye.
- Define PWM pins for the pins connected to the right eye.
- Set the emotion you want to be displayed on the matrices.
Note: Before working with the Humanoid Robot, we need to calibrate the hands such that they are straight and calibrate the legs in such a way that they are facing forward.