adafruit / Adafruit_Arcada

Arduino library for gaming
Other
82 stars 22 forks source link

ItsyBitsy M4 #6

Open rollalt opened 5 years ago

rollalt commented 5 years ago

Can I set Arcada on ItsyBitsy M4?

Thank you.

ladyada commented 5 years ago

we don't have a definition in the .h file for it, if you'd like to add one go ahead. right now things are very hard-coded, not configurable dynamically - if you'd like to help with that we'd be happy to take PRs! :)

rollalt commented 5 years ago

ladyada, I'll be happy to help, but I don't know where to start. I will fork and start with Adafruit_Arcada.h

ladyada commented 5 years ago

nope no docs yet, its all at the top pf Adafruit_Arcada.h - have fun :)

rollalt commented 5 years ago

Could you please explain to me why the pin numbers don't correspond with the schematics? `#elif defined(ADAFRUIT_PYBADGE_M4_EXPRESS)

define ARCADA_TFT_SPI SPI1

define ARCADA_TFT_CS 44 // Display CS Arduino pin number

define ARCADA_TFT_DC 45 // Display D/C Arduino pin number

define ARCADA_TFT_RST 46 // Display reset Arduino pin number`

Thank you.

ladyada commented 5 years ago

where does it not match?

rollalt commented 5 years ago

https://cdn-learn.adafruit.com/assets/assets/000/075/064/original/adafruit_products_PyBadge_Sch.png?1556577492 TFT_CS is Pin 10.

ladyada commented 5 years ago

pin # does not equal the arduino pin name!

rollalt commented 5 years ago

Thank you for being patient :). What does pin # equal?

makermelissa commented 5 years ago

In this case, the Pin is PB07. You would look in your Board Support Package to see where Pin numbers are matched to the Arduino Pin Names.

ladyada commented 5 years ago

its also printed on the pcb!