-
Notifications
You must be signed in to change notification settings - Fork 551
Spring cleaning with multiarch support #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
c04fee6
Ignore .idea directory
amotl 6f89c03
Fix version guard pragma
amotl 079c01d
Get rid of initialize-with-constructor variant
amotl 86b3ea9
Improve example and documentation
amotl f8ad845
Added speed support for the esp32 chip
lemio 5a1302a
Add shiftIn() speed support for Teensy
amotl bc0a684
Improve "yield" polyfill for ancient Arduino versions
amotl 4439333
Add critical section to protect shared resource access on SMP machines
amotl ba7e811
Update README
amotl 222b065
Prevent ints from corrupting the read sequence
dhmsjs fbaae9f
It's not appropriate to feed the ESP WDT using
amotl 29a4f70
Add two examples for basic use and timeout operation
3953891
Adapt examples
amotl 9d63b65
Improve multiarch support
amotl 67342c3
Add "plaformio.ini" and build environment tooling for compiling the "…
amotl 3b089dd
Update documentation
amotl 4e3ef00
Add backlog notes
amotl 319da9d
Bump library version
amotl c4e40c4
Forgot thinko in code
amotl ca03614
Add PlatformIO support for Bluepill
amotl 70a285a
Bump version
amotl 51a63c8
Document PlatformIO support for STM32
amotl fad56bf
Switch to ARDUINO_ARCH_ pragma constants, add bits for STM32
amotl e94d022
Update documentation
amotl b8e5511
Bump version
amotl 53c4098
Minor cosmetics
amotl 82d7531
Introduce custom architecture pragma constants to streamline conditio…
amotl 421eae4
Bump version
amotl 770a8ed
Fall back to regular Arduino "noInterrupts()" / "interrupts()"
amotl 364f962
Update docs
amotl 958e3ec
Bump version
amotl fad8a45
What's that?
amotl 87727e0
Add more variants how to wait for HX711, see also #125
amotl a497b14
Minor documentation update
amotl 3b48930
Reflect hardware support confirmed by @bogde, thanks!
amotl 7d75502
Slightly correct testing state of HAL support
amotl 83c9f51
Simplify pinout definitions by not trying
amotl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -11,3 +11,10 @@ | |
| *.lai | ||
| *.la | ||
| *.a | ||
|
|
||
| # IDE metadata | ||
| /.idea | ||
|
|
||
| # PlatformIO virtualenv and pioenv | ||
| /.venv* | ||
| /.pioenvs | ||
This file contains hidden or 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
This file contains hidden or 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,20 @@ | ||
| # HX711 library contributors | ||
|
|
||
| Listed in the order of appearance. | ||
|
|
||
| - Weihong Guan: First steps | ||
| - Bogdan Necula: Making it real | ||
| - Zachary J. Fields: Performance improvements on AVR. Simplify read logic. | ||
| - Rodrigo Wirth: Support to read the current `get_offset` and `get_scale` | ||
| - Ulrich Wolf: Move pin definition out of constructor | ||
| - Alexander Wilms: Improve documentation | ||
| - David Holland-Moritz: Improve interrupt safety on AVR | ||
| - Geert Roumen et al.: ESP32 support | ||
| - Thomas O Fredericks: Support for Teensy 3.2 and non-blocking readings | ||
| - Ahmad Elbadri: Improve ESP8266 stability | ||
| - Andreas Motl: Bookkeeping, multiarch support | ||
| - The Hiveeyes Developers: Spring-cleaning 2019 | ||
| - Many bits and pieces by countless people from the community, | ||
| see also "doc/backlog.rst" in the repository. | ||
|
|
||
| Thanks a bunch! |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,62 @@ | ||
| # ============ | ||
| # Main targets | ||
| # ============ | ||
|
|
||
|
|
||
| # ------------- | ||
| # Configuration | ||
| # ------------- | ||
|
|
||
| $(eval venvpath := .venv2) | ||
| $(eval pip := $(venvpath)/bin/pip) | ||
| $(eval python := $(venvpath)/bin/python) | ||
| $(eval platformio := $(venvpath)/bin/platformio) | ||
|
|
||
| # Setup Python virtualenv | ||
| setup-virtualenv: | ||
| @test -e $(python) || `command -v virtualenv` --python=python2 --no-site-packages $(venvpath) | ||
|
|
||
|
|
||
| # ---------- | ||
| # PlatformIO | ||
| # ---------- | ||
|
|
||
| install-platformio: setup-virtualenv | ||
| @$(pip) install platformio --quiet | ||
|
|
||
| build-all: install-platformio | ||
| @$(platformio) run | ||
|
|
||
| build-env: install-platformio | ||
| @$(platformio) run --environment $(environment) | ||
|
|
||
|
|
||
| # Note: This are legacy build targets, the new ones are defined through `platformio.ini`. | ||
|
|
||
| ci-all: install-platformio | ||
| # atmelavr | ||
| $(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_basic_example | ||
| $(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_timeout_example | ||
| $(platformio) ci --board=megaatmega2560 --lib="." examples/HX711_full_example | ||
|
|
||
| # atmelavr | ||
| $(MAKE) ci-basic board=feather328p | ||
|
|
||
| # espressif8266 | ||
| $(MAKE) ci-basic board=huzzah | ||
|
|
||
| # espressif32 | ||
| $(MAKE) ci-basic board=lopy4 | ||
|
|
||
| # atmelsam | ||
| $(MAKE) ci-basic board=adafruit_feather_m0 | ||
| $(MAKE) ci-basic board=adafruit_feather_m4 | ||
|
|
||
| # bluepill | ||
| $(MAKE) ci-basic board=bluepill_f103c8 | ||
|
|
||
| ci-basic: | ||
| $(platformio) ci --board=$(board) --lib="." examples/HX711_basic_example --verbose | ||
|
|
||
| clean: | ||
| platformio run -t clean | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.