-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gpio: Some functions are not working with the Arduino Uno nor the Arduino Nano #18228
Comments
Hi, try first initialize GPIO using |
Hi! I tried that, it still does not work on my board. Also, I saw that it gets initialized automatically: EDIT: I correct myself, it only does given |
Maybe as a workaround you could simply use |
I also tried initializing and toggeling manually. It's very strange, maybe I made some weird mistake in my setup? It would be nice if you could see if you are able to reproduce this. |
Hi, I tested provided code at arduino-uno - indeed there are some problems with GPIO at this board. In current RIOT version (master) your code with Currently, no ideas on my end where is bug. I try to looked at this issue in the following week(s). |
Hi, thanks for the effort. I will test the fix when I find some time and if it works, I will close this issue. I'm not closing yet since I see only the LED module has been changed, but there were some general GPIO problems the last time I used these boards. That's why I could not control my buzzer. |
Fixed with #18265. |
Description
I cannot toggle LEDs or control my buzzers, because after initializing the proper ports and setting them the state of them never changes.
Steps to reproduce the issue
hello-world
example for this to test the GPIO):Expected results
The terminal window outputs zeros and ones in alternation, whilst die LED is blinking each second.
Actual results
The terminal window only outputs zeros and the LED stays off.
Versions
This also does not work with a small sound buzzer I bought today. The devices are not defect as I have connected them to current directly once and it worked. I suspect RIOT is not toggeling the GPIO ports.
System Information
Additional Notes
hello-world
example like I did.avr-gcc
, but this is not RIOTs fault.avr-gcc
issue, I am not sure.The text was updated successfully, but these errors were encountered: