-
Notifications
You must be signed in to change notification settings - Fork 50
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
Create ArtnetEtherENC.h #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! Could you add examples and workflows for them?
Hi ! Thanks for your response ! I'll look into it :) Val |
Hi, I tried to add what you requested :) The wiring diagram was taken from https://github.com/Juddling/pi-pico-enc28j60 and is reportedly made by https://github.com/tobiasvogel I'm not familiar with workflows I copied/pasted previous sections Hope this helps, |
Also, It's probably not the place to ask you about this (sorry), I see here than only four callbacks are allowed https://github.com/hideakitai/ArtNet#subscribing-callbacks-with-net-sub-net-and-universe-as-you-like, why is it so ? Thank you again, |
About callbacks, the limitation has been removed, but README is not fixed… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented
.github/workflows/build.yml
Outdated
board: | ||
- vendor: rp2040 | ||
arch: rp2040 | ||
name: rpipico | ||
include: | ||
- index: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | ||
board: | ||
vendor: rp2040 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think EtherENC is available for any platform. If so, please add “board” and “include” as same as the “build-ethernet”.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, will do
README.md
Outdated
@@ -41,6 +41,20 @@ If you have already installed this library, please follow: | |||
- ESP32 (Ethernet and ETH) | |||
- ESP8266 | |||
- Almost all platforms without WiFi | |||
- Raspberry Pi Pico with ENC28J60 (please read following section) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All platforms that can use EtherENC can be supported, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right,
I'll check the library documentation
Oh OK i was surprised to see it working, do you want me to remove this section from the readme as well ? |
It’s great if you can! Thank you! |
I see some builds have failed Should we remove those boards from the build and list supported boards in the docs ?
|
It's done, I copied the explanation you gave in #59 Although I'm not sure what is meant by "making public 4 of them" |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added suggestion for README
README.md
Outdated
- These universes (targets of the callbacks) are reflected to `net_sw` `sub_sw` `sw_in` in `ArtPollreply` automatically | ||
|
||
PortTypes, GoodInput/Output, SwIn, etc., are limited to 4 ports. If more than 4 callbacks are needed, it is better to subscribe to more than four and make public 4 of them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PortTypes, GoodInput/Output, SwIn, etc., are limited to 4 ports. If more than 4 callbacks are needed, it is better to subscribe to more than four and make public 4 of them | |
PortTypes, GoodInput/Output, SwIn, etc., are limited to 4 ports. Only the first four ports are reflected if you subscribe to more than four callbacks. |
.github/workflows/build.yml
Outdated
sketch-paths: | | ||
- examples/EthernetENC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following sketch-paths
is better to avoid memory shortage for avr
sketch-paths: | | |
- examples/EthernetENC | |
sketch-paths: | | |
- examples/EthernetENC/receiver | |
- examples/EthernetENC/sender |
.github/workflows/build.yml
Outdated
- vendor: arduino | ||
arch: avr | ||
name: uno |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you comment out these lines and add a comment like "temporarily disabled because of memory shortage of sender
example"
https://github.com/hideakitai/ArtNet/actions/runs/7453947055/job/20282884214?pr=79
Artnet/Receiver.h
Outdated
#if !defined(ESP8266) && !defined(ARTNET_ETHER_IS_ENC28J60) | ||
Ethernet.MACAddress(mac); | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest (on GitHub) version has the MACAddress()
method.
So, could you modify these lines as follows? (ESP8266
also has MACAddress()
method now, #if
directive has removed)
#if !defined(ESP8266) && !defined(ARTNET_ETHER_IS_ENC28J60) | |
Ethernet.MACAddress(mac); | |
#endif | |
Ethernet.MACAddress(mac); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I was able to compile my sketch after cloning the latest ENC library and removing the #if
directive
Readme and workflow have been updated to use git instead of regular installation
@MrFrangipane Maybe the suggestions above can fix workflows. Could you try to implement them? |
Thank you ! I get it now :) |
Sure, changes have been made :) I realized too late i could directly commit your suggestions, I'll know for next time |
Ah, maybe this is a bug of EthernetENC… |
It says on EthernetENC's readme
Should we drop ESP32 from those tests and state to not use ESP32 with EthernetENC in the readme ? |
Please comment out esp32, s3, and c3 from workflow. But it is NOT unavailable for esp32 series, I will send pull request to EtherENC :) |
Could you add a same note as README of EtherENC?
|
Created a PR on EthernetENC Networking-for-Arduino/EthernetENC#58 -> merged |
If you finish working on this PR, please mention me! |
…sable avr:uno memory shortage still going on)
Hi @hideakitai Thank you for your help again ! I realized only 2 examples were compiled, so I added them to the workflow sketch-paths: |
- examples/EthernetENC/receive_fastled
- examples/EthernetENC/receiver
- examples/EthernetENC/send_receive
- examples/EthernetENC/sender This revealed that FastLED is not supporting
I checked the other workflows and they seem to correspond to the 2nd option. The current version of the workflow is as follows sketch-paths: |
- examples/EthernetENC/receiver
- examples/EthernetENC/send_receive
- examples/EthernetENC/sender
# disabled due to FastLED not supporting mkrvidor4000
# - examples/EthernetENC/receive_fastled If this is OK for you, merging should be OK 🥳 |
Thank you! Yeah, mkrvidor is not supported. Hmm.. I prefer
|
@hideakitai board has been disabled and FastLED reinstated All tests seems to have passed :) |
All checks passed, thank you! I'll review the code again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one typo, but LGTM
Co-authored-by: Hideaki Tai <hideaki.tai@gmail.com>
Suggested fix was commited :) |
Thank you for your contribution! |
Please close #80 :) Thanks again! |
Awesome ! Thank you for all those wonderful libraries 🙏 |
Hello
Thank you for this awesome library.
Is it possible to make possible the use of the following library ?
Allows to use https://github.com/JAndrassy/EthernetENC
For now, I modifiy files manually, it would be awesome to have this embedded in the lib, if It helps someone else
All the best,
Val