-
Notifications
You must be signed in to change notification settings - Fork 516
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
[WiFi] added support for ESP32 architecture and XIAO ESP32C3 board #512
Open
jnsbyr
wants to merge
12
commits into
firmata:main
Choose a base branch
from
jnsbyr:feature/xiao-esp32c2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7d6ada1
[WiFi] added support for ESP32 architecture and XIAO ESP32C3 board
jnsbyr 7a6dd82
WiFiStream: implement method status() instead of adding method connec…
jnsbyr 9651a7c
StandardFirmataWiFi: include library ESP32Servo
jnsbyr dde9fd9
Boards.h: renamed DEFAULT_ANALOG_RESOLUTION to DEFAULT_ADC_RESOLUTION
jnsbyr ad79f15
added board WT32-ETH01 (ESP32-S1)
jnsbyr 4567db4
Boards.h: fixed PIN_TO_DIGITAL for board ARDUINO_XIAO_ESP32C3
jnsbyr 08325d1
StandardFirmataWiFi: added error check and debug output for ESP32_WIFI
jnsbyr af2e9aa
Boards.h: enabled PIN_TO_SERVO for ARDUINO_XIAO_ESP32C3 and ARDUINO_W…
jnsbyr 90ac082
Boards.h: added generic board defintion for ESP32
jnsbyr 44a8788
Boards.h: exclude SPI flash pins for generic ESP32 board
jnsbyr b3a78d5
synced changes in StandardFirmataWiFi to all examples
jnsbyr d072c0a
WiFiStream: make connection status const remapping from SDK to Firmat…
jnsbyr 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 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 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 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 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
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.
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.
Can you explain why this is necessary again?
Maybe we can figure out a creative solution to work around your need. My fear is that you are going to break backward compatibility with this change.
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 had to do a similar change in ConfigurableFirmata, as the problem is that there's a conflicting definition of ANALOG (as well as INPUT and OUTPUT) in the ESP32 headers. IIRC, the values don't even match, so setting the pin mode could strangely fail, depending on which of the definitions is in scope at the calling place. But I think the right solution is to call this PIN_MODE_ANALOG, to avoid further ambiguities.
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.
Does
PIN_MODE_ANALOG
come fromArduino.h
?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.
Oh, I see it. It's in
FirmataDefines.h
. It seems like the right move is to move away fromANALOG
and deprecate it altogether, as we did forINPUT
andOUTPUT
.