ThePiHut / rgbxmastree

Code examples for the RGB Xmas Tree
90 stars 38 forks source link

tree.py doesn't seem to turn lights on #33

Open lb1313 opened 9 months ago

lb1313 commented 9 months ago

Hi,

I'm completely new to python. I followed the instructions and the tree.py code doesn't seem to do as the instructions say (the lights don;t turn on white).

I'm not sure what has gone wrong or how to fix it.

bennuttall commented 9 months ago

Is there an error?

lb1313 commented 9 months ago

Is there an error?

Hi, No, the code appears to be working fine (I click the "run" button in Thonny and it appears to run without issue, and the same when I run the tree.py via the terminal).

I have also checked that I am running python3 and that all packages are up to date. I have checked the connections by plugging my sense HAT into my raspberry pi 4 and that is working and lighting up. Both the RGB xmas tree and the sense HAT have been stored in the same place whilst they were not in use too and the tree appears to be physically fine.

I do remember this being an issue for me a few years ago when I originally got my Pi and the tree, but I decided to start fresh this year and try to learn how to code properly, and don't have that work around saved anywhere any more. I remember spending days figuring out the issue then too :-)

I am pretty comfortable with the coding language in general as I regularly use the R statistical programming language for work, and python appears to be fairly similar (with some differences).