فهرست منبع

update for arduino library manager

lanselambor 7 سال پیش
والد
کامیت
41e00315bd
5فایلهای تغییر یافته به همراه278 افزوده شده و 3 حذف شده
  1. 22 0
      .gitattributes
  2. 215 0
      .gitignore
  3. 5 3
      README.md
  4. 27 0
      keywords.txt
  5. 9 0
      library.properties

+ 22 - 0
.gitattributes

@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs     diff=csharp
+*.sln    merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc	 diff=astextplain
+*.DOC	 diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot  diff=astextplain
+*.DOT  diff=astextplain
+*.pdf  diff=astextplain
+*.PDF	 diff=astextplain
+*.rtf	 diff=astextplain
+*.RTF	 diff=astextplain

+ 215 - 0
.gitignore

@@ -0,0 +1,215 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+
+[Dd]ebug/
+[Rr]elease/
+x64/
+build/
+[Bb]in/
+[Oo]bj/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.log
+*.scc
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+*.cachefile
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+*.ncrunch*
+.*crunch*.local.xml
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.Publish.xml
+*.pubxml
+
+# NuGet Packages Directory
+## TODO: If you have NuGet Package Restore enabled, uncomment the next line
+#packages/
+
+# Windows Azure Build Output
+csx
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Others
+sql/
+*.Cache
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.[Pp]ublish.xml
+*.pfx
+*.publishsettings
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+App_Data/*.mdf
+App_Data/*.ldf
+
+#############
+## Windows detritus
+#############
+
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Mac crap
+.DS_Store
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist/
+build/
+eggs/
+parts/
+var/
+sdist/
+develop-eggs/
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg

+ 5 - 3
README.md

@@ -1,9 +1,11 @@
-3 Axis Digital Compass Library
+Grove 3-Axis Digital Compass
 ------------------------------
 
 This is an Arduino library for Grove - 3-Axis Digital Compass(HMC5883L) from Seeed Studio.
 
-[![Compass](http://www.seeedstudio.com/depot/images/product/axis%20compass.jpg)](http://www.seeedstudio.com/depot/grove-3axis-digital-compass-p-759.html)
+![Compass](https://statics3.seeedstudio.com/images/101020034%201.jpg)
+
+[Grove 3-Axis Digital Compass](https://www.seeedstudio.com/s/Grove-3-Axis-Digital-Compass-p-759.html)
 
 ### How to use
 Values of x, y and z read from the compass seem to have offsets.
@@ -13,7 +15,7 @@ offset = (minimum + maxmum) / 2
 value = valueRaw - offset
 ```
 
-For more information, please refer to [wiki page](http://garden.seeedstudio.com/index.php?title=Twig_-_3-axis_Compass_v1.0b).
+For more information, please refer to [wiki page](http://wiki.seeedstudio.com/Grove-3-Axis_Compass_V1.0/).
 
     
 ----

+ 27 - 0
keywords.txt

@@ -0,0 +1,27 @@
+  
+#######################################
+# Syntax Coloring Map For 
+#######################################
+
+#######################################
+# Datatypes (KEYWORD1)
+#######################################
+MagnetometerScaled	KEYWORD1
+MagnetometerRaw	KEYWORD1
+
+
+#######################################
+# Methods and Functions (KEYWORD2)
+#######################################
+initCompass	KEYWORD2
+getCompass	KEYWORD2
+HMC5883L	KEYWORD2
+readRawAxis	KEYWORD2
+readScaledAxis	KEYWORD2
+setMeasurementMode	KEYWORD2
+setScale	KEYWORD2
+getErrorText	KEYWORD2
+
+#######################################
+# Constants (LITERAL1)
+#######################################

+ 9 - 0
library.properties

@@ -0,0 +1,9 @@
+name=Grove 3-Axis Digital Compass
+version=1.0.0
+author=Seeed Studio
+maintainer=Seeed Studio <techsupport@seeed.cc>
+sentence=This is an Arduino library for Grove 3-Axis Digital Compass(HMC5883L).
+paragraph=3-Axis Compass module, a member of grove family uses I²C based Honeywell HMC5883L digital compass. This ASIC is equipped with high resolution HMC118X magneto-resistive sensors and a 12-bit ADC. It provides compass heading accuracy up to 1° to 2°. Signal conditioning like amplification, automatic degaussing strap drivers and offset cancellation are inbuilt. This grove module also includes a MIC5205-3.3 for power supply requirement. Hence user can connect any 3.3V to 6V DC power supply.
+category=Sensors
+url=https://github.com/Seeed-Studio/Grove_3Axis_Digital_Compass
+includes=HMC5883L.h