Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Portenta H7: Fix digital-pin-gpios - problem with digitalWrite#143

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

KurtE
Copy link

There was an issue, where I think I screwed up earlier and defined the pins as all GPIO_ACTIVE_LOW in the digital-pin-gpios.

With this the digitalWrites were inverted.

I was having an issue with my ILI9341 library where the CS and DC pins states were inverted.

Created simple example sketch:

void setup() {  // put your setup code here, to run once:  pinMode(2, OUTPUT);  pinMode(3, OUTPUT);  pinMode(4, OUTPUT);}void loop() {  // put your main code here, to run repeatedly:  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  delay(50);  digitalWrite(2, LOW);  digitalWrite(3, LOW);  digitalWrite(4, LOW);  delay(250);}

Before these changes:
image

With these changes:
image

And simple ILI9341 driver I have for Zephyr is working again... (Was working on GIGA)

facchinm reacted with thumbs up emoji
There was an issue, where I think I screwed up earlier and defined the pins as all GPIO_ACTIVE_LOW in the digital-pin-gpios.With this the digitalWrites were inverted.
@facchinmfacchinm merged commitc1c2065 intoarduino:arduinoJun 17, 2025
15 checks passed
@facchinm
Copy link
Member

Thanks for the fix Kurt, much appreciated!

@KurtEKurtE deleted the PortentaH7-digitalWrite_inverted branchJune 17, 2025 11:54
pillo79 pushed a commit that referenced this pull requestAug 1, 2025
Portenta H7: Fix digital-pin-gpios - problem with digitalWrite
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@KurtE@facchinm

[8]ページ先頭

©2009-2025 Movatter.jp