-
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.
- Loading branch information
Showing
255 changed files
with
21,181 additions
and
9,795 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.pio | ||
.vscode/.browse.c_cpp.db* | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch |
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,10 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"platformio.platformio-ide" | ||
], | ||
"unwantedRecommendations": [ | ||
"ms-vscode.cpptools-extension-pack" | ||
] | ||
} |
108 changes: 108 additions & 0 deletions
108
dependencies/heltec_wifi_lora_32_V2/Adafruit Unified Sensor/.gitignore
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,108 @@ | ||
# | ||
# NOTE! Don't add files that are generated in specific | ||
# subdirectories here. Add them in the ".gitignore" file | ||
# in that subdirectory instead. | ||
# | ||
# NOTE! Please use 'git ls-files -i --exclude-standard' | ||
# command after changing this file, to see if there are | ||
# any tracked files which get ignored after the change. | ||
# | ||
# Normal rules | ||
# | ||
.* | ||
*.o | ||
*.o.* | ||
*.a | ||
*.s | ||
*.ko | ||
*.so | ||
*.so.dbg | ||
*.mod.c | ||
*.i | ||
*.lst | ||
*.symtypes | ||
*.order | ||
modules.builtin | ||
*.elf | ||
*.bin | ||
*.gz | ||
*.bz2 | ||
*.lzma | ||
*.patch | ||
*.gcno | ||
|
||
# | ||
# Top-level generic files | ||
# | ||
/tags | ||
/TAGS | ||
/linux | ||
/vmlinux | ||
/vmlinuz | ||
/System.map | ||
/Module.markers | ||
/Module.symvers | ||
|
||
# | ||
# git files that we don't want to ignore even it they are dot-files | ||
# | ||
!.gitignore | ||
!.mailmap | ||
|
||
# | ||
# Generated include files | ||
# | ||
include/config | ||
include/linux/version.h | ||
include/generated | ||
|
||
# stgit generated dirs | ||
patches-* | ||
|
||
# quilt's files | ||
patches | ||
series | ||
|
||
# cscope files | ||
cscope.* | ||
ncscope.* | ||
|
||
# gnu global files | ||
GPATH | ||
GRTAGS | ||
GSYMS | ||
GTAGS | ||
|
||
# QT-Creator files | ||
Makefile.am.user | ||
*.config | ||
*.creator | ||
*.creator.user | ||
*.files | ||
*.includes | ||
|
||
*.orig | ||
*~ | ||
\#*# | ||
*.lo | ||
*.la | ||
Makefile | ||
Makefile.in | ||
aclocal.m4 | ||
autoconfig.h | ||
autoconfig.h.in | ||
autom4te.cache/ | ||
build-aux/ | ||
config.log | ||
config.status | ||
configure | ||
libtool | ||
libupnp.pc | ||
m4/libtool.m4 | ||
m4/ltoptions.m4 | ||
m4/ltsugar.m4 | ||
m4/ltversion.m4 | ||
m4/lt~obsolete.m4 | ||
stamp-h1 | ||
docs/doxygen | ||
|
120 changes: 120 additions & 0 deletions
120
dependencies/heltec_wifi_lora_32_V2/Adafruit Unified Sensor/Adafruit_Sensor.cpp
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,120 @@ | ||
#include "Adafruit_Sensor.h" | ||
|
||
/**************************************************************************/ | ||
/*! | ||
@brief Prints sensor information to serial console | ||
*/ | ||
/**************************************************************************/ | ||
void Adafruit_Sensor::printSensorDetails(void) { | ||
sensor_t sensor; | ||
getSensor(&sensor); | ||
Serial.println(F("------------------------------------")); | ||
Serial.print(F("Sensor: ")); | ||
Serial.println(sensor.name); | ||
Serial.print(F("Type: ")); | ||
switch ((sensors_type_t)sensor.type) { | ||
case SENSOR_TYPE_ACCELEROMETER: | ||
Serial.print(F("Acceleration (m/s2)")); | ||
break; | ||
case SENSOR_TYPE_MAGNETIC_FIELD: | ||
Serial.print(F("Magnetic (uT)")); | ||
break; | ||
case SENSOR_TYPE_ORIENTATION: | ||
Serial.print(F("Orientation (degrees)")); | ||
break; | ||
case SENSOR_TYPE_GYROSCOPE: | ||
Serial.print(F("Gyroscopic (rad/s)")); | ||
break; | ||
case SENSOR_TYPE_LIGHT: | ||
Serial.print(F("Light (lux)")); | ||
break; | ||
case SENSOR_TYPE_PRESSURE: | ||
Serial.print(F("Pressure (hPa)")); | ||
break; | ||
case SENSOR_TYPE_PROXIMITY: | ||
Serial.print(F("Distance (cm)")); | ||
break; | ||
case SENSOR_TYPE_GRAVITY: | ||
Serial.print(F("Gravity (m/s2)")); | ||
break; | ||
case SENSOR_TYPE_LINEAR_ACCELERATION: | ||
Serial.print(F("Linear Acceleration (m/s2)")); | ||
break; | ||
case SENSOR_TYPE_ROTATION_VECTOR: | ||
Serial.print(F("Rotation vector")); | ||
break; | ||
case SENSOR_TYPE_RELATIVE_HUMIDITY: | ||
Serial.print(F("Relative Humidity (%)")); | ||
break; | ||
case SENSOR_TYPE_AMBIENT_TEMPERATURE: | ||
Serial.print(F("Ambient Temp (C)")); | ||
break; | ||
case SENSOR_TYPE_OBJECT_TEMPERATURE: | ||
Serial.print(F("Object Temp (C)")); | ||
break; | ||
case SENSOR_TYPE_VOLTAGE: | ||
Serial.print(F("Voltage (V)")); | ||
break; | ||
case SENSOR_TYPE_CURRENT: | ||
Serial.print(F("Current (mA)")); | ||
break; | ||
case SENSOR_TYPE_COLOR: | ||
Serial.print(F("Color (RGBA)")); | ||
break; | ||
case SENSOR_TYPE_TVOC: | ||
Serial.print(F("Total Volatile Organic Compounds (ppb)")); | ||
break; | ||
case SENSOR_TYPE_VOC_INDEX: | ||
Serial.print(F("Volatile Organic Compounds (Index)")); | ||
break; | ||
case SENSOR_TYPE_NOX_INDEX: | ||
Serial.print(F("Nitrogen Oxides (Index)")); | ||
break; | ||
case SENSOR_TYPE_CO2: | ||
Serial.print(F("Carbon Dioxide (ppm)")); | ||
break; | ||
case SENSOR_TYPE_ECO2: | ||
Serial.print(F("Equivalent/estimated CO2 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM10_STD: | ||
Serial.print(F("Standard Particulate Matter 1.0 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM25_STD: | ||
Serial.print(F("Standard Particulate Matter 2.5 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM100_STD: | ||
Serial.print(F("Standard Particulate Matter 10.0 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM10_ENV: | ||
Serial.print(F("Environmental Particulate Matter 1.0 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM25_ENV: | ||
Serial.print(F("Environmental Particulate Matter 2.5 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_PM100_ENV: | ||
Serial.print(F("Environmental Particulate Matter 10.0 (ppm)")); | ||
break; | ||
case SENSOR_TYPE_GAS_RESISTANCE: | ||
Serial.print(F("Gas Resistance (ohms)")); | ||
break; | ||
case SENSOR_TYPE_UNITLESS_PERCENT: | ||
Serial.print(F("Unitless Percent (%)")); | ||
break; | ||
case SENSOR_TYPE_ALTITUDE: | ||
Serial.print(F("Altitude (m)")); | ||
break; | ||
} | ||
|
||
Serial.println(); | ||
Serial.print(F("Driver Ver: ")); | ||
Serial.println(sensor.version); | ||
Serial.print(F("Unique ID: ")); | ||
Serial.println(sensor.sensor_id); | ||
Serial.print(F("Min Value: ")); | ||
Serial.println(sensor.min_value); | ||
Serial.print(F("Max Value: ")); | ||
Serial.println(sensor.max_value); | ||
Serial.print(F("Resolution: ")); | ||
Serial.println(sensor.resolution); | ||
Serial.println(F("------------------------------------\n")); | ||
} |
Oops, something went wrong.