Skip to content

Instantly share code, notes, and snippets.

View vduenasg's full-sized avatar

Victor Dueñas vduenasg

View GitHub Profile
@vduenasg
vduenasg / KML_GEN.py
Created June 30, 2023 00:37
Generador archivo .kml
import os
# Opening my .txt file where my locations are defined, and storing in locations variable as a list
path_project = 'D:/Git Files/Scripts/KML/'
path_locations = path_project + 'data.txt'
my_locations_file = open(path_locations, encoding='utf-8')
locations_raw = my_locations_file.readlines()
db_locations = []
@vduenasg
vduenasg / WTV020.c
Last active May 7, 2016 03:24
WTV020-SD
/*
* WTV020.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
*/
#include <avr/io.h>
#include "mdelay.h"
@vduenasg
vduenasg / HC-SR04.c
Last active May 7, 2016 03:16
HC.SR04
/*
* HC-SR04.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
@Ejemplo:
Configurar un ultrasonido para que mida distancias en centímetros.
Pseudocódigo:
@vduenasg
vduenasg / Servos.c
Last active May 7, 2016 03:08
Servos - 8 Canales
/*
* Servos.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
@Ejemplo:
Controlar 8 servomotores mediante PC.
Pseudocódigo:
@vduenasg
vduenasg / Keypad4x4.c
Last active May 7, 2016 02:57
Keypad4x4
/*
* Keypad4x4.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
@Ejemplo:
Leer las teclas y enviarlas mediante UART a la PC.
*/
@vduenasg
vduenasg / 7Seg.asm
Last active May 7, 2016 02:49
7Segmentos
// * Author: Victor Dueñas Guardia
// * Info: www.netzek.com
// @Ejemplo Barrido Display:
// Este programa realiza el conteo de 0 a 9999, al llegar a este valor regresa a cero.
// Aplicamos el uso del barrido de display de cátodo común mediante timers, también usa
// blanqueo del cero.
// Pseudocódigo:
// - Configuro el Timer 0 para producir una interrupcion a 400Hz, esto servira para
@vduenasg
vduenasg / LCDuC.c
Last active May 7, 2016 02:35
LCDuC
/*
* LCDuC.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
@Ejemplo Pantalla LCD HD44780
Este programa muestra las diferentes funciones de la librería
aplicadas a la pantalla LCD.
*/
// * Author: Victor Dueñas Guardia
// * Info: www.netzek.com
.INCLUDE "M16DEF.INC"
.equ LCD_RS = 0
.equ LCD_RW = 1
.equ LCD_E = 2
LDI R16,HIGH(RAMEND)
OUT SPH,R16
LDI R16,LOW(RAMEND)
/*
* FSMTrafficFcn.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
Implementacion de una maquina de estado finita usando funciones, mas info:
http://www.netzek.com/2014/09/maquina-de-estado-finita-fsm.html
*/
/*
* FSMTraffic.c
*
* Author: Victor Dueñas Guardia
* Info: www.netzek.com
Implementacion de una maquina de estado finita, mas info:
http://www.netzek.com/2014/09/maquina-de-estado-finita-fsm.html
*/