Hardware Reference
In-Depth Information
???//Test of INPUT == 1
ATS_PrintTestStatus( "5. Test of INPUT == 1", INPUT == 1);
???//Test of OUTPUT == 0
ATS_PrintTestStatus( "6. Test of OUTPUT == 0", OUTPUT == 0);
//test decimal
ATS_PrintTestStatus( "7. Test of decimal constant", 101 == ((1 * pow(10,2)) + (0 * pow(10,1)) + 1));
//test binary
ATS_PrintTestStatus( "8. Test of binary constant", B101 == 5);
//test octal
ATS_PrintTestStatus( "9. Test of octal constant", 0101 == 65);
//test hexadecimal
ATS_PrintTestStatus( "7. Test of hexadecimal constant", (0x101 == 257));
/*
* Test Run End
*/
ATS_ReportMemoryUsage(startMemoryUsage);
ATS_end();
}
//************************************************************************
void loop()
{
}
Once the code is uploaded to the Arduino, you can connect to the serial port and view the test results. They
should look like Figure 13-2 .
 
Search WWH ::




Custom Search