Go to advanced search

by Mahdi
Thu May 14, 2015 6:12 pm
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Re: Python programming

Does this code work for you guys ? I get many errors when i upload it to the raspberry pi . http://www.jamesbmarshall.com/2015/04/python-4-bit-led-counter-on-raspberry-pi-2/ I see something wrong with your code. You didn't specified on/off for instance. gpio.output(pin, gpio.HIGH) else: gpio.output...
by Mahdi
Thu May 14, 2015 6:09 pm
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Re: Python programming

Your code work for me. :) :) :) Here is code to fix indentation: #Define the pin configuration by counting in binary and stripping out each bit, char by char. while LED_counter <= 15: resetPins() current_num = bin(LED_counter)[2:].zfill(4) while bit_counter < 4: LED_array[bit_counter][1] = int(curr...
by Mahdi
Wed May 13, 2015 9:02 am
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Re: Python programming

There appears to be an error with the indentation. while bit_counter < 4: LED_array[bit_counter][1] = int(current_num[bit_counter]) bit_counter += 1 bit_counter = 0 is indented 4 spaces too much to the right. Once that code is de-indented the script works. Any other errors have been introduced by y...
by Mahdi
Wed May 13, 2015 7:46 am
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Re: Python programming

Does this code work for you guys ? I get many errors when i upload it to the raspberry pi . http://www.jamesbmarshall.com/2015/04/python-4-bit-led-counter-on-raspberry-pi-2/ Have you got your LEDs attached nicely. Try running it with sudo. I am pretty sure about my wiring, the problem is that i can...
by Mahdi
Wed May 13, 2015 7:21 am
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Re: Python programming

scotty101 wrote:Post the first few errors you get and we might be able to help you.

It says that "return" is an outside function and that the "theLEDs" is not defined, there were also other problems that i fixed.
by Mahdi
Tue May 12, 2015 12:46 pm
Forum: Python
Topic: Python programming
Replies: 10
Views: 1289

Python programming

Does this code work for you guys ? I get many errors when i upload it to the raspberry pi .
http://www.jamesbmarshall.com/2015/04/p ... erry-pi-2/
by Mahdi
Wed Apr 22, 2015 7:58 pm
Forum: Python
Topic: Binary Counter without using shift register such as 74HC595
Replies: 4
Views: 2287

Re: Binary Counter without using shift register such as 74HC

hey man :)
why do you define 9 GPIOs while u are using only 8 ?
by Mahdi
Thu Mar 19, 2015 12:35 pm
Forum: General discussion
Topic: Raspberry pi 2 not booting
Replies: 3
Views: 458

Re: Raspberry pi 2 not booting

Yes, it is on all the time and not blinking
by Mahdi
Thu Mar 19, 2015 10:01 am
Forum: General discussion
Topic: Raspberry pi 2 not booting
Replies: 3
Views: 458

Raspberry pi 2 not booting

Hello :) after i recieved my raspberry pi 2, i started it and downloaded raspbian and openelec on it. i used it for three days and now it just wont boot up. i tried to reformat the SD card and checked for shorts and it still wont work. the red led is lighting so it can not be the power supply, the g...
by Mahdi
Thu Mar 19, 2015 9:09 am
Forum: General discussion
Topic: Raspberry pi B+
Replies: 8
Views: 896

Re: Raspberry pi B+

Poor pi :cry:
by Mahdi
Thu Mar 19, 2015 8:52 am
Forum: General discussion
Topic: Raspberry pi B+
Replies: 8
Views: 896

Re: Raspberry pi B+

I used the continuity function of my multimeter and i heard the sound when i measured
by Mahdi
Wed Mar 18, 2015 4:29 pm
Forum: General discussion
Topic: Raspberry pi B+
Replies: 8
Views: 896

Re: Raspberry pi B+

i checked and there is connection between 3,3V pin and the ground. does that mean my pi is dead ?
by Mahdi
Tue Mar 17, 2015 9:44 pm
Forum: General discussion
Topic: Raspberry pi B+
Replies: 8
Views: 896

Raspberry pi B+

Hello my friends :) i have a raspberry pi B+ and i am currently working on building an ambilight, but the problem is that my pi wont boot up, the red power led is not lighting up at all and the green led is so dim that it is almost impossible to see. the CPU gets very hot by the way. i have tried di...

Go to advanced search