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
| 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 = [] |
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
| /* | |
| * 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 | |
| */ | |
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
| /* | |
| * 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 | |
| */ | |
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
| // * 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) |
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
| /* | |
| * TWIuC.c | |
| * | |
| * Author: Victor Dueñas Guardia | |
| * Info: www.netzek.com | |
| @Ejemplo: Maestro Transmisor - Receptor | |
| Comunicación con una memoria EEPROM y un Sensor de Temperatura. |
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
| // * Author: Victor Dueñas Guardia | |
| // * Info: www.netzek.com | |
| // @Ejemplo: | |
| // - Colocar el valor $AA en los 100 primeros bytes de la memoria. | |
| // - Realizar el copiado de los 100 primeros bytes de la memoria hacia la posición $0200 de la memoria. | |
| // Pseudo-código: | |
| // - Defino el número de bytes que serán copiados. | |
| // - Defino la posición inicial donde serán colocados los "n" primeros bytes. |
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
| // * Author: Victor Dueñas Guardia | |
| // * Info: www.netzek.com | |
| // @Ejemplo3: | |
| // Realizar la suma de una o dos cifras BCD | |
| // Pseudocódigo: | |
| // - Cargo los valores a sumar en un registro. | |
| // - Inicio el procedimiento de la suma. |
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
| // * Author: Victor Dueñas Guardia | |
| // * Info: www.netzek.com | |
| // @Ejemplo2: | |
| // Colocar el valor $EE en los primeros 400 bytes de la memoria RAM. | |
| // Pseudocódigo: | |
| // - Cargo el valor que deseo colocar en los bytes correspondientes. | |
| // - Inicio el procedimiento de "llenado" dos veces ya que cada "llenado" esta colocando el valor en 200 bytes. |
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
| // * Author: Victor Dueñas Guardia | |
| // * Info: www.netzek.com | |
| // @Ejemplo1: | |
| // Contar cuantos bits tienen valor uno en los 100 primeros bytes de la memoria RAM. | |
| // Pseudocódigo: | |
| // - Coloco la Pila al final de la RAM. | |
| // - Defino el número de bytes a contar. | |
| // - Cargo el contenido de primer byte. |
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
| // * Author: Victor Dueñas Guardia | |
| // * Info: www.netzek.com | |
| // @Ejemplo4: | |
| // Cada vez que se ingrese el valor uno incremente el registro R17 | |
| // Pseudocódigo: | |
| // - Cargo el número de la tabla de bifurcación. | |
| // - Cargo la dirección de la tabla de bifurcación. | |
| // - Realiza la operación correspondiente en la tabla. |
NewerOlder