-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from akkoyun/01.00.00
01.00.00 - Master update
- Loading branch information
Showing
16 changed files
with
892 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.