Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yasir-shahzad committed Aug 22, 2023
1 parent 77048aa commit 53f5246
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/SoftI2CScan/SoftI2CScan.ino
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@

#include <SoftI2C.h>

SoftI2C SoftWire =SoftI2C(10,5);
SoftI2C SoftWire =SoftI2C(10, 5); //sda, scl

void setup()
{
SoftWire.begin();

Serial.begin(2400);
Serial.begin(9600);
while (!Serial); // Leonardo: wait for serial monitor
Serial.println("\nI2C Scanner");
}


void loop()
{
byte error, address;
Expand Down

0 comments on commit 53f5246

Please sign in to comment.