Skip to content

Instantly share code, notes, and snippets.

View Sabby1234567890's full-sized avatar

Sabrina Banh Sabby1234567890

View GitHub Profile
from SimpleCV import Color,Camera,Display
cam = Camera() #starts the camera
display = Display()
while(display.isNotDone()):
img = cam.getImage() #gets image from the camera
barcode = img.findBarcode() #finds barcode data from image
import json, requests
import time
from neopixel import *
# LED strip configuration:
LED_COUNT = 6 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 5 # DMA channel to use for generating signal (try 5)