PiSupply / Flick

Resources for the Flick range of boards and cases
https://pisupp.ly/flick1
65 stars 26 forks source link

changing pins on flick #61

Open milajo2 opened 3 years ago

milajo2 commented 3 years ago

Hi,

I was wondering if I can re-assign the pin values to assign elsewhere on the raspberry pi if so what configuration document would I have to change?

shawaj commented 3 years ago

@milajo2 which Flick board are you using?

milajo2 commented 3 years ago

@milajo2 which Flick board are you using? The flick large

milajo2 commented 3 years ago

Also is their possibility of how could use the flick large on Arduino I have an arduino mega 2560

tvoverbeek commented 3 years ago

Flick large needs I2C (SCL and SDA), 2 GPIOs for Transfer and Reset, VCC, Ground and optionally 2 GPIOs for the Red/Green LED. You can reassign pins to other GPIOs and I2C (e.g. Pi4 has several I2C possibilities). Of course you need to modify the flicklib code if you change the I2C bus and any of the other GPIOs.

The Flick uses the same chip as the Pimoroni Skywriter. In their github you will find code for Arduino using the Wire library for I2C. Should work on the Mega2560 which even has 2 I2C buses. See https://github.com/pimoroni/skywriter-hat/tree/master/arduino

milajo2 commented 3 years ago

I have to design a project using an rgb LED matrix and this flick board, is there a possibility that I could get this working with the RPI and get my rgb LED matrix working with arduino and combine the two together to get them operating together? As at the moment my LED's aren't working with my RPI and I fully haven't figured out how to get the flick working with the arduino.

milajo2 commented 3 years ago

I've used your advice I'm now getting this message

test1
tvoverbeek commented 3 years ago

On your screenshot the serial monitor is on 9600 baud. In your code above you initialise it to 115200 baud. Try changing the serial monitor baud setting to 115200.

milajo2 commented 3 years ago

I apologise I now get this.

1
milajo2 commented 3 years ago

my flick no longer works with my raspberry pi PXL_20210204_200208470 PXL_20210204_200154001

shawaj commented 3 years ago

@milajo2 are you sure it was connected to correctly?

It could also be an issue with the firmware