gsoc-2022-arduino-core icon indicating copy to clipboard operation
gsoc-2022-arduino-core copied to clipboard

beagleconnect_freedom: Add digital, analog, pwm pins

Open Ayush1325 opened this issue 9 months ago • 4 comments

  • Add pin layout described here: https://openbeagle.org/beagleconnect/zephyr/arduino-core/-/commit/1ce0b0bfca16ffc9eb781f263525347e0b42cef5
  • Also remove LED_BUILTIN. Seems the dts entry is sufficient.

Ayush1325 avatar May 14 '24 17:05 Ayush1325

Cc: @jadonk

Ayush1325 avatar May 14 '24 17:05 Ayush1325

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

DhruvaG2000 avatar May 14 '24 17:05 DhruvaG2000

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

jadonk avatar May 14 '24 17:05 jadonk

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.

Ayush1325 avatar May 14 '24 17:05 Ayush1325

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?

jadonk avatar May 15 '24 14:05 jadonk

@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?

Ayush1325 avatar May 18 '24 16:05 Ayush1325