Skip to content

Instantly share code, notes, and snippets.

@balp
Created December 9, 2021 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balp/6bcba56014b39c44d26e22379739859f to your computer and use it in GitHub Desktop.
Save balp/6bcba56014b39c44d26e22379739859f to your computer and use it in GitHub Desktop.
C++ Arduino Variables:
void loop()
{
static const int WINDOW_SIZE = 32;
double new_value = analog_read(Sensor);
double sliding_window[WINDOW_SIZE] = {0};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment