You need to run as root due to the library BCM2835
Use arduino IDE to burn the codes
https://www.youtube.com/watch?v=3Jq-TGeWXc0&feature=youtu.be&ab_channel=ElectronicsScience-Dr.ArunPatel https://www.youtube.com/watch?v=JcV24Jg0gSI&feature=youtu.be&ab_channel=SithuAye