Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Raspberrypi with custom flash light
#!/usr/bin/env ruby
# @rivsc / http://blog.escarworld.com
require 'rpi_gpio'
PIN_NUM = 12
RPi::GPIO.set_numbering :board
RPi::GPIO.setup PIN_NUM, :as => :output
RPi::GPIO.set_high PIN_NUM
`raspistill -vf -hf -n -ss 30000 -sh 70 -q 95 -t 50 -o photo_#{Time.now.strftime('%Y-%m-%d_%H-%M')}.jpg`
RPi::GPIO.set_low PIN_NUM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment