This file contains hidden or 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
// Frecuencimetro digital | |
// Cuenta las veces que ocurre un flanco ascendente durante un segundo | |
// Y muestra el resultado en la LCD | |
// Ángel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "p18f4550.h" | |
#include "xc.h" | |
#include "stdlib.h" |
This file contains hidden or 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
// Muestreador de audio: digitaliza y guarda una señal analógica en EEPROM | |
// Se muestrean 128 datos de 10 bits, lo que se convierte en 256 datos de 8 | |
// bits al moverlos a EEPROM. Luego se muestra en la LCD los datos capturados. | |
// Ángel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "xc.h" | |
#include "stdlib.h" | |
#include "../utils/delays.h" //Incluir cabeceras de retardos |
This file contains hidden or 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
;Maestro SPI que envía cadenas | |
;Las direcciones de las cadenas se definen en el bloque VARIABLES | |
;Carlos Zelada | |
;Eduardo Rivas | |
title "PIC18F4550 Envio de cadenas por SPI Modo Maestro" | |
list p=18F4550 | |
#include <p18f4550.inc> | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF |
This file contains hidden or 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
;Muestra en el puerto serial el valoar analógico leído al presionar el boton | |
title "PIC18F4550 Valor analógico por comunicación serie" | |
list p=18F4550 ;Tipo de procesador | |
#include <p18f4550.inc> ;Incluye archivo de cabecera del PIC | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF | |
CONFIG PBADEN = OFF | |
CONFIG MCLRE = ON | |
CONFIG DEBUG = ON | |
CONFIG LVP = OFF |
This file contains hidden or 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
// Manda datos del ADC por el EUSART al presionar un boton | |
// Boton pull down en RB0 | |
// Entrada analogica en RA0 | |
// Carlos Zelada | |
// Eduardo Rivas | |
#include "xc.h" | |
#include "stdlib.h" | |
#include "p18f4550.h" |
This file contains hidden or 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
// Manda datos del ADC por el EUSART | |
// Entrada analogica en RA0 | |
// David Escobar | |
// Angel Moreno | |
// Eduardo Rivas | |
#include "xc.h" | |
#include "stdlib.h" | |
#include "p18f4550.h" |
This file contains hidden or 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
#!/usr/bin/python | |
# Determine memory usage by the current user | |
# From https://wiki.webfaction.com/attachment/wiki/MiscellaneousFiles/memory_usage.py | |
# Minimal modifications to make it PEP8 compliant by https://github.com/jerivas | |
from pprint import pprint | |
import os | |
import pwd | |
import re |
This file contains hidden or 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 re import compile | |
from django.conf import settings | |
from django.contrib.auth import REDIRECT_FIELD_NAME | |
from django.contrib.auth.views import redirect_to_login | |
if hasattr(settings, "LOGIN_REQUIRED_URLS"): | |
URLS = [compile(expr) for expr in settings.LOGIN_REQUIRED_URLS] | |
This file contains hidden or 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
/* Controlador PID para sistema de cocina mejorada | |
* Por Eduardo Rivas, Ángel Moreno, David Escobar, Josué Hernández, Henry Orellana | |
* Para la Universidad Don Bosco, Ciclo I - 2014 | |
* A partir de los valores del sensor de oxígeno se ajusta la posición de la | |
* válvula de la chimenea a través de un servo motor. | |
* El programa hace uso de las capacidades de DSP del dsPIC30F para procesar las | |
* señales. Las constantes Kp, Ki, Kd fueron obtenidas con Matlab. | |
* Probado en el dsPIC30F4011, pero debería funcionar con toda la familia 30F */ |
This file contains hidden or 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
# settings.py | |
TEMPLATE_CONTEXT_PROCESSORS = ( | |
'django.core.context_processors.i18n', | |
) | |
# urls.py (outside i18n_patterns) | |
(r'^i18n/', include('django.conf.urls.i18n')), |