Updated Timer with Broad RPi Compatibility and kernel 6.x GPIO support#157
Open
larsll wants to merge 2 commits intoaws-solutions-library-samples:mainfrom
Open
Updated Timer with Broad RPi Compatibility and kernel 6.x GPIO support#157larsll wants to merge 2 commits intoaws-solutions-library-samples:mainfrom
larsll wants to merge 2 commits intoaws-solutions-library-samples:mainfrom
Conversation
c4c52b3 to
0ea8ff8
Compare
Timing - server-side Test fixes Remove not required files Updated zip Upgrade node to latest v18 Updates after RPi5 testing Changes after additional testing
0d21a06 to
4d171ad
Compare
Contributor
Author
|
@StevenAskwith @davidfsmith This one is ready for review. Will need some testing on different devices before merging. (I have tested on Pi Zero W and RPi5 CM so far...) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issue: #14
Description of changes:
rpi-gpiowithnode-libgpiodas the primary GPIO library — uses the/dev/gpiochipNcharacter device interface, unaffected by the kernel 6.x sysfs GPIO renumbering that brokerpi-gpioon Bookwormrpi-gpioretained as optional fallback for pre-kernel-6.x systems onlygpiochip4; all other models usegpiochip0uname -marchitecture detection (aarch64/armv7l/armv6l) instead of fragile model-string matching, correctly covering all RPi variantsunofficial-builds.nodejs.orglibgpiod-devandnode-libgpiodinstalled unconditionallyufwis installed and activeDate.now(), eliminating network latency from measurementsconfig.gpio.debounceMs(default 2000ms)configobject at the top oftimer.js— no external config file'lap'string; updatedracePage.tsxandracePageLite.tsxto matchpackage.jsonbumped to v2.0.0;node-libgpiodandrpi-gpiomoved tooptionalDependencies;engines: { node: ">=18.0.0" }addedpackage-lock.json; README updated with OS table, Node.js install steps, NTP sync guidance, configuration reference, and troubleshooting sectionBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.