Skip to content

Commit

Permalink
Merge pull request #4 from akkoyun/01.02.00
Browse files Browse the repository at this point in the history
01.02.00
  • Loading branch information
akkoyun authored Feb 20, 2022
2 parents ada68e1 + 1cf214a commit 10156bd
Show file tree
Hide file tree
Showing 10 changed files with 765 additions and 634 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:
# 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_Functions/main/install.sh)
install:
# Note that every library should be installed in a seperate command
# - arduino --install-library "Adafruit SleepyDog Library"
# - arduino --install-library "Adafruit FONA Library"
script:
- for e in examples/*; do
platformio ci --board=$BOARD --lib=. $e/*;
done

- build_main_platforms
notifications:
email:
on_success: change
on_failure: change
Binary file added I2C_Functions-01.02.00.tar.gz
Binary file not shown.
40 changes: 40 additions & 0 deletions examples/Device_Control/Device_Control.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include "I2C_Functions.h"

void setup() {

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

// Header
Serial.println(" I2C Functions ");
Serial.println("--------------------------");

}

void loop() {

// Sensor Address
uint8_t _Sensor_Address = 0x40; // HDC2010 TH Sensor

// Sensor Detect
bool _Sensor_Control = I2C.Control_Device(_Sensor_Address);

// Print Sensor Detect
Serial.print("Device Status : ");
if (_Sensor_Control == true) {

// Print Status
Serial.println("OK");

} else {

// Print Status
Serial.println("FAIL");

}


// Loop Delay
delay(1000);

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

This file was deleted.

Loading

0 comments on commit 10156bd

Please sign in to comment.