I’m designing an APA102 controller for the RFDuino. The problem is the limited amount of pins, so I need to combine some pins.
I don’t need RX/TX when a programming is running, so I can use this pins. However for debugging it can be handy to have TX free, so I can check printed information (although I have a BLE connection as well).
I was thinking to combine the APA102 clock with the RX pin. That will free GPIO2 for the switch/sensor.
So when programming the clock signal receives pulses as well, but that’s not a problem because during programming the strip doesn’t have to behave in a specific way of course.
GPIO configuration on RFDuino
0 RX / APA102 clock (remapable SPI)
1 TX
2 Switch/Vibration sensor
3 APA102 data (remapable SPI)
4 MOSFET (to completely power of the strip)
5 SCL (remapable i2c clock)
6 SDA (remapable i2c data)
I’m wondering if I overlook something. I choose not to use the I2C clock pin for the pull-up resistors on the line, but maybe something internally in the APA102 does the same?
Any other ideas. A work-around might be using a jumper to switch the pin during programming, but that’s not with I prefer.
