Saturday, September 19, 2015

Debugging with the Arduino Zero

In this video we look at how to do debugging with the Arduino Zero. The Arduino Zero has a lot of great capabilities and features. One of those great features is it has a built-in hardware debugger. In this video we will look at how to use the debugger and the software you need to go with it.

//***************Arduino Code from Video**********************************
This code was used for a tutorial video on the ForceTronics YouTube Channel that showed
how to do debugging with the Arduino Zero and Atmel Studio. This code is free and open
for anybody to use or modify
int ranNum; //global variable to hold random number

void setup() {
  randomSeed(analogRead(A0)); //seed value for random number generator
  pinMode(13, OUTPUT); // initialize digital pin 13 as an output.

void loop() {
  ranNum = random(0,100);   //generate a random number between zero and 100
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second