Skip to content

Commit

Permalink
Add library properties and some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Aug 9, 2024
1 parent 0e833e8 commit 9b2fc5b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 17 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

Library for AMeter/VMeter by M5UnitUnified.
Library for AMeter/VMeter using M5UnitUnified.

The M5UnitUnified version of the library is located under [src/unit](src/unit).
M5UnitUnfied has a unified API and can control multiple units via PaHub, etc.
Expand All @@ -27,14 +27,10 @@ In order to ensure the measurement accuracy, there is a built-in DC-DC isolated

This prevents noise and surges on the data bus or other circuits from entering the local ground terminal to interfere or damage sensitive circuits. Each Unit is individually calibrated when leaving the factory, initial accuracy of 0.1%FS, ±1 count, and a maximum measurement voltage of ±36V.





## Related Link

- [ADS1115t & Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/ADS1115.PDF)
- [CA-IS3020S & Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/CA-IS3020S.pdf)
- [Unit Ameter & Datasheet](https://docs.m5stack.com/en/unit/ameter)
- [Unit Vmeter & Datasheet](https://docs.m5stack.com/en/unit/vmeter)

## Required Libraries:

Expand Down
27 changes: 27 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "M5Unit-METER",
"description": "Library for M5Stack UNIT METER using M5UnitUnified",
"keywords": "M5Stack UNIT METER,M5UnitUnified",
"authors": {
"name": "M5Stack",
"url": "http://www.m5stack.com"
},
"repository": {
"type": "git",
"url": "https://github.com/m5stack/M5Unit-METER.git"
},
"dependencies": [
{
"name": "M5UnitUnified"
},
{
"name": "M5Utility"
},
{
"name": "M5HAL"
}
],
"version": "0.0.0",
"frameworks": ["arduino", "espidf"],
"platforms": ["espressif32"]
}
11 changes: 11 additions & 0 deletions library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name=M5Unit-METER
version=0.0.0
author=M5Stack
maintainer=M5Stack
sentence=Library for M5Stack UNIT METER using M5UnitUnified
paragraph=
category=Device Control
url=https://github.com/m5stack/M5Unit-METER
architectures=esp32
includes=M5UnitENV.h
depends=M5UnitUnified,M5Utility,M5HAL
16 changes: 6 additions & 10 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
;-----------------------------------------------------------------------
; For UnitTest
; M5Unit-METER
; For UnitTest and examples (Using M5UnitUnified)
;-----------------------------------------------------------------------
[platformio]

Expand All @@ -19,19 +20,15 @@ monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
upload_speed = 1500000
test_speed = 115200
test_filter= embedded/*
test_ignore= native/*

;Arduino-esp 2.0.4 (Changed Wire) at 5.1.0
platform = espressif32 @6.6.0
;platform = espressif32 @ 5.0.0
platform = espressif32 @6.8.0
framework = arduino
test_ignore= native/*

[Core]
extends = m5base
board = m5stack-grey
;m5stack-core-esp32-16M
board = m5stack-core-esp32-16M
;m5stack-grey
;m5stack-core-esp32-16M ;;6.8.0 or later
;m5stack-core-esp32
lib_deps = ${env.lib_deps}

Expand Down Expand Up @@ -133,7 +130,6 @@ build_flags = ${env.build_flags}
[test_fw]
lib_deps = google/googletest@1.12.1


; --------------------------------
; UnitTest
; --------------------------------
Expand Down

0 comments on commit 9b2fc5b

Please sign in to comment.