Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

led on and off the camera in raspberry B + #170

Closed
lhelontra opened this issue Oct 3, 2014 · 1 comment

Comments

@lhelontra
Copy link

commented Oct 3, 2014

I was testing on and off the LED on the camera did not work and b +. I realized that the problem was that the pin bcm in raspberry b is 5 and b+ is 32.

Camera.py added to the line 83 as follows:

if GPIO.RPI_REVISION == 3:
         # model b +
         PIN = 32

else:
# model a,b
        PIN = 5

I changed the line 393:

GPIO.setup (5, GPIO.OUT, ​​initial = GPIO.LOW) by GPIO.setup (PIN GPIO.OUT, ​​initial = GPIO.LOW)

on line 1845:

GPIO.output (5, bool (value)) by GPIO.output (PIN, bool (value))

Congratulations, great job

@waveform80 waveform80 added the bug label Oct 3, 2014

@waveform80 waveform80 added this to the 1.9 milestone Oct 3, 2014

@waveform80 waveform80 self-assigned this Oct 3, 2014

@waveform80

This comment has been minimized.

Copy link
Owner

commented Oct 3, 2014

Ah - I hadn't realized that had changed for the B+ (haven't got one yet!). I'll get this done for 1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.