Using Probe 0 (for beginners)

Probe 0 is placed by default at the beginning of the HC_communicate() function. Its location can’t be changed. Trying to put this probe anywhere else will have no effect. This measurement should be enough for most users. However, it does not necessarily give you the minimum Free RAM value which can be reached while your program runs.

Refer to this example : Checking your Free RAM.

#include <HITIComm.h>


// run once at power on
void setup()
{
    // initialize library
    HC_begin();
}


// run repeatedly after setup() 
void loop()
{
    // measure SRAM on Probe 0
    HC_communicate();
}

 

Was this article helpful?
0 out of 0 found this helpful