This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |