Skip to content

Instantly share code, notes, and snippets.

View Lessnullvoid's full-sized avatar

Microhm Lessnullvoid

View GitHub Profile
try:
with picamera.PiCamera() as camera:
print "Starting camera..."
camera.resolution = resolution
if format == 'jpeg':
camera.quality = quality
camera.start_preview()
time.sleep(2)
startT = time.time()
print "Capture begin:"
#/Estrutura:
# - Un archivo por codigo
# - datos datetime + serial en la ultima posicion de la lista
# selecionar nombre de lista con raw input
# if seleciona el archivo para abrir y el archivo de escritura
# escribir valor desde el puerto serial en la celda siguiente
# raw input selecionar otro usuario
import datetime
import csv
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
int b1 = 2;
int b2 = 3;
int b3 = 4;
int b4 = 5;
int b5 = 6;
// the setup routine runs once when you press reset:
void setup() {
int b1 = 2;
int b2 = 3;
int b3 = 4;
int b4 = 5;
int b5 = 6;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.