Need help for my arduino project PLEASE ANYONE!

Charlieplexing will be a little tricky in coding.

You will need PNP buffer transistors.