-
Notifications
You must be signed in to change notification settings - Fork 231
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
Support Arduino Nano in arduino-uno
crate
#69
Conversation
If someone with an Arduino Nano (not Arduino Nano Every) could give this a try (especially the ADC example), it would be much appreciated! I can't really test whether ADC6 and ADC7 now work as intended ... |
Tested uno-adc.rs on an Arduino Nano. One suggestion is to add in board documentation or uno-adc.rs how to build the example with the feature 'arduino-nano' enabled. Test build command: Test run command: Test 1Connected pins:
Serial output
Test 2Connected pins:
Serial output
|
Show off all pins and channels in the Arduino Uno ADC example. Signed-off-by: Rahix <rahix@rahix.de>
Some packages of ATmega328P expose the ADC6 and ADC7 signals. Allow accessing them when available. For this, a new `adc-pins` crate feature is added that needs to be enabled. Signed-off-by: Rahix <rahix@rahix.de>
The Arduino Nano is very similar to Arduino Uno; add support for it to the arduino-uno crate via an arduino-nano crate feature. Signed-off-by: Rahix <rahix@rahix.de>
@kallemooo, thanks so much! That's exactly what I was looking for. |
Sorry to bump this old issue. |
The reason is that these pins are not "normal". They can only be used for the ADC and do not support GPIO modes like all other pins. Thus we cannot simply reuse the existing port/pin code and need a different mechanism... |
Implement support for Arduino Nano as proposed in issue #64.