-
-
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 #4 from akkoyun/01.02.00
01.02.00
- Loading branch information
Showing
10 changed files
with
765 additions
and
634 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: | ||
# 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 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,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); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.