Keyestudio Smart Little Turtle Robot V3 Manual page 150

Table of Contents

Advertisement

www.keyestudio.com
void loop(){
for(int i=0; i<8; i++) // there is eight data, loop for eight times
{
LEDArray[i]=LedArray1[i];
subroutine LEDArray
for(int j=7; j>=0; j--)
eight times
{
if((LEDArray[i]&0x01)>0) //judge if the last bit of data is greater than
0
{
myMatrix.drawPixel( j, i,1); //light up the corresponding point
}
else //otherwise
{
myMatrix.drawPixel( j, i,0); //turn off the corresponding point
}
LEDArray[i] = LEDArray[i]>>1; //LEDArray[i] moves right for one bit
to judge the previous one bit
}
}
//Call the emoticon array data in the
//Every data(byte) has 8 bit, therefore, loop for
150

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents