Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
max7219.led module not found #20
I get the error:
There were no errors when cloning from the repo. I have installed wiringPi, and I have also changed the SPI settings, just like in the README.txt
Any help would be greatly appreciated.
Hi, are you using raspian?
If so, did you do the following at the command line?
Try that, the output from the last command should be something like:
Then try the test program again, but maybe change directory first :
Let me know how you get on
running raspian jessie ... same problem ... and yes, the install seems to fail ...
......... OK ....... entering the directory and running setup solves that ...
and after install i try to execute the example:
this is the code into the python file:
#!/usr/bin/env python import os import max7219.led as led def getCPUtemperature(): res = os.popen("vcgencmd measure_temp").readline() return(res.replace("temp=","").replace("'C\n","")) device = led.matrix(2) device.orientation(270) try: while True: device.show_message("CPU temperature: " + getCPUtemperature() + "C"); except KeyboardInterrupt: pass finally: device.clear()