zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
44 stars 11 forks source link

beagleconnect_freedom: Add digital, analog, pwm pins #94

Closed Ayush1325 closed 4 months ago

Ayush1325 commented 4 months ago
Ayush1325 commented 4 months ago

Cc: @jadonk

DhruvaG2000 commented 4 months ago

My main concern here is a person comin new to the platform should be able to quickly make sense of what pin mapping you've created

jadonk commented 4 months ago

Thanks. Looks good to me. Do you have a test procedure?

Ayush1325 commented 4 months ago

Thanks. Looks good to me. Do you have a test procedure?

Can you provide some clarification regarding how the pin numbering was chosen. Analog numbering seems simple but not sure about digital pin order.

jadonk commented 4 months ago

Thanks. Looks good to me. Do you have a test procedure?

Can you provide some clarification regarding how the pin numbering was chosen. Analog numbering seems simple but not sure about digital pin order.

Sure.

I looked around for some examples of Arduino Click Shields such that Arduino examples that used mikroBUS boards might "just work", but I found that there wasn't much consistency between the Shields. I chose what I thought was both reasonably popular, affordable and included a reasonably good set of pins and documentation.

I went with MikroE Arduino MKR Click Shield

image

image

I tried to match up the equivalent Arduino pin with the pins on the 2 mikroBUS ports on BeagleConnect Freedom. My thinking was that if it worked on an Arduino MKR with the MikroE Arudino MKR Click Shield, then it should work with BeagleConnect Freedom. That should provide a great test resource.

Can you add this information to the documentation in a reasonable way?

Ayush1325 commented 4 months ago

@jadonk Thanks for the input. I do not think there is any board specific docs in this repo currently, but we can certainly add a section in our own docs regarding this.

@DhruvaG2000 I think this provides the context for the pin layout?