Example Program - Blink Test for I2C Qwick Connector
/*
ZXPS-I2C-Pins-Blink-Test.ino by Stewart Newfeld, Zebra Systems, Inc.
Diagnostic routine that toggles two I2C lines once per second for LED or Oscilloscope inspection
PIN A4 - SDA
PIN A5 - SCL
A4 ____ ________ ________ ____
|________| |________| |________|
A5 ________ ________ ________
|________| |________| |_______
*/
void setup() {
// initialize pins as an outputs.
pinMode(A4, OUTPUT);
pinMode(A5, OUTPUT);
}
void loop() {
digitalWrite(A4, HIGH); //
digitalWrite(A5, HIGH); //
delay(500); // wait for 500ms second
digitalWrite(A4, LOW); //
delay(500);
digitalWrite(A5, LOW); //
delay(500);
digitalWrite(A4, HIGH); //
delay(500);
}
filename: ZXPS-I2C-Pins-Blink-Test.ino