Home > database >  Arduion OLED display aida64 12864
Arduion OLED display aida64 12864

Time:09-27

Void loop ()
{
If (Serial. The available () & gt; 0)
{
InByte=Serial. The read ();
If (inByte==0 x43)
{
Frame [0]=inByte;
Int count=1;
For (int I=1; i <40; I++)
{
While (Serial. The available ()==0)
;
Frame [I]=Serial. The read ();
count++;
}
Serial. Println (" ");
Num1=0;
For (int I=4; i <8; I++)
{
If (frame [I]==0 x20)
break;
Num1=num1 * 10 + (frame [I] - 48).
}
Num2=0;
For (int I=14; i <18; I++)
{
If (frame [I]==0 x20)
break;
Num2=10 + num2 * (frame [I] - 48).
}

Wants to change the tone a little don't know how to
  • Related