You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for responding. Yes, I tried sample_analogwrite.py, but the program gets stuck on b.analogWrite(pin, brightness) line. Also, I am not sure why there are two output statements there.
analogWrite method returns a boolean indicating completion. I am just retrieving it be able to see if it was completed properly.
Hm... That's odd. I'm using this lib in one of my projects for several months now (https://github.com/n0w/rgblamp) with no complaints at all. I'm at work now, so I can't test anything but just in case... What version of python are you using? Mine was 2.7 under debian linux
I am using python 2.5 under windows. I think I may have found a work around (I still need to check if it works properly). Looks like it was getting stuck at
" while(self.__getData()!="what"):
pass
"
in arduino.py. So I modified the prototype.pde to the following...
"
int readHexValue()
{
askData();
int strval[2];
int converted_str;
"
Maybe its a windows issue ...
Activity
n0w commentedon Oct 9, 2013
Have you tried sample_analogwrite.py? It works for me.
Why are you doing val = object.method() anyway? Try my_board.analogWrite(11,255) instead.
suniv commentedon Oct 9, 2013
Thank you for responding. Yes, I tried sample_analogwrite.py, but the program gets stuck on b.analogWrite(pin, brightness) line. Also, I am not sure why there are two output statements there.
analogWrite method returns a boolean indicating completion. I am just retrieving it be able to see if it was completed properly.
n0w commentedon Oct 9, 2013
Hm... That's odd. I'm using this lib in one of my projects for several months now (https://github.com/n0w/rgblamp) with no complaints at all. I'm at work now, so I can't test anything but just in case... What version of python are you using? Mine was 2.7 under debian linux
suniv commentedon Oct 9, 2013
I am using python 2.5 under windows. I think I may have found a work around (I still need to check if it works properly). Looks like it was getting stuck at
" while(self.__getData()!="what"):
pass
"
in arduino.py. So I modified the prototype.pde to the following...
"
int readHexValue()
{
askData();
int strval[2];
int converted_str;
"
Maybe its a windows issue ...