Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphs display issue when data "hi-speed" send #9

Open
1198632013 opened this issue Nov 5, 2023 · 0 comments
Open

Graphs display issue when data "hi-speed" send #9

1198632013 opened this issue Nov 5, 2023 · 0 comments

Comments

@1198632013
Copy link

image

/*
  for test 
  by Enzo
*/

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }
}

float thisByte = 0.0f;

void loop() {

  Serial.print(sin(thisByte)*100.0f);
  Serial.print(",");
  Serial.print(cos(thisByte)*100.0f);
  Serial.print(",");
  Serial.print(sin(thisByte)*50.0f);
  Serial.print(",");
  Serial.print(cos(thisByte)*50.0f);
  Serial.print(",");
  Serial.print(sin(thisByte));
  Serial.print("\n");
  
  delay(10);
  thisByte += 0.1f;
  if (thisByte == 360.0f) {    // you could also use if (thisByte == '~') {
    thisByte = 0.0f;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant