[HACKTOBERFEST] Examples#2
Open
MMMMMNG wants to merge 13 commits into
Open
Conversation
copied that straight from the examples I made for rpi-ws281x-java 🔥
These dependencies should all already be in the classpath at runtime because the 'examples' implementation depends on the fatJar from MCP23S17.
Turns out the uberExampleJar task didn't properly merge the META-INF/services file. Now pi4j.newAutoContext() works again. For choosing multiple examples you can use the `-Pexample=<ExampleClassName>` cli arg.
both examples were successfully tested. The provider had to be explicitly requested in the GPIO & SPI ConfigBuilder, then it worked.
also added a wiring diagram and a gif showing the running test of ConsecutiveTurnOnExample. Aight! The examples worked during my tests so that's it for me! 😀🔥
now that the mock-spi-plugin updates are officially released there is no need for the cumbersome workaround to execute tests.
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.
Adds examples to the project
As hinted at in 2d9a118 :)
Changes
runExamplestakes the executable fatJar, puts it on the pi and runs it.TODOs
Future TODOs