Skip to content

Commit

Permalink
Merge pull request #1 from akkoyun/01.00.00
Browse files Browse the repository at this point in the history
01.00.00 - Master update
  • Loading branch information
akkoyun committed Feb 21, 2022
2 parents ab235b3 + dbcfe31 commit d38e911
Show file tree
Hide file tree
Showing 16 changed files with 892 additions and 763 deletions.
36 changes: 22 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
language: python

language: c
os: linux
dist: xenial
cache:
directories:
- "~/.platformio"

install:
- pip install -U platformio
- platformio lib install 986 # LSM303

- ~/arduino_ide
- ~/.arduino15/packages/
git:
depth: false
quiet: true
env:
- BOARD=megaatmega2560

global:
- PRETTYNAME="I2C Device Scanner"
# You can uncomment this to explicitly choose an (old) version of the Arduino IDE
#- ARDUINO_IDE_VERSION="1.8.10"
before_install:
- source <(curl -SLs https://raw.githubusercontent.com/akkoyun/I2C_Scanner/main/install.sh)
install:
# Note that every library should be installed in a seperate command
- arduino --install-library "I2C_Functions"
script:
- for e in examples/*; do
platformio ci --board=$BOARD --lib=. $e/*;
done

- build_main_platforms
notifications:
email:
on_success: change
on_failure: change
75 changes: 0 additions & 75 deletions Documents/Library_Properties.md

This file was deleted.

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# Arduino_Library_Template
Library Template

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ I2C DEVICE EXPLORER │
├──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ │ 0x_0 │ 0x_1 │ 0x_2 │ 0x_3 │ 0x_4 │ 0x_5 │ 0x_6 │ 0x_7 │ 0x_8 │ 0x_9 │ 0x_A │ 0x_B │ 0x_C │ 0x_D │ 0x_E │ 0x_F │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x0_ │ ---- │ ---- │ ---- │ │ │ │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x1_ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x2_ │ │ │ │ │ │ │ │ │ 0x28 │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x3_ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x4_ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x5_ │ │ │ │ │ │ 0x55 │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x6_ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ 0x7_ │ │ │ │ │ │ │ │ │ ---- │ ---- │ ---- │ ---- │ ---- │ ---- │ ---- │ ---- │
├──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┤
│ Total connected device : 000 Reset [0]
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Binary file added examples/.DS_Store
Binary file not shown.
68 changes: 68 additions & 0 deletions examples/Device_Scanner/Device_Scanner.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#include "I2C_Scanner.h"

void setup() {

// Serial Communication Start
Serial.begin(115200);

// Start Console
Terminal.Begin(Serial);

// Draw Table
I2C_Scanner.Draw_Table();

// Start I2C
Wire.begin();

}

void loop() {

// Scan Device
I2C_Scanner.Device_Scan();

// Multiplexer Set
if (Serial.available() > 0) {

uint16_t Key = Serial.read();

// Terminal Beep
Terminal.Beep();

switch (Key) {
case '0':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 0);
break;
case '1':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 1);
break;
case '2':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 2);
break;
case '3':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 3);
break;
case '4':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 4);
break;
case '5':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 5);
break;
case '6':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 6);
break;
case '7':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 7);
break;
case '8':
I2C.Set_Multiplexer(__ADDR_TCA9548__, 8);
break;
default:
break;
}
}

// Loop Delay
delay(500);

}
9 changes: 0 additions & 9 deletions examples/test/test.ino

This file was deleted.

Loading

0 comments on commit d38e911

Please sign in to comment.