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
| // testbench.sv | |
| // Testbench - Decodificador de Teclado Matricial 4x4 | |
| // Clock: 100MHz | Debounce: 1ms (simulação) | |
| `timescale 1ns/1ps | |
| module tb_decodificador; | |
| logic clk, rst; | |
| logic [3:0] col_matriz; |
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 evdev import InputDevice, categorize, ecodes | |
| import threading | |
| class Keyboard: | |
| def __init__(self, device_path): | |
| --------------------------------------------------------------------- | |
| @brief Construtor da classe Keyboard. | |
| Inicializa o dispositivo de entrada, variáveis de controle para teclas especiais | |
| (CapsLock, ESC) e o mapeamento de teclas normais e com Shift. |
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
| { | |
| "explorer.confirmDelete": false, | |
| "explorer.confirmDragAndDrop": false, | |
| "editor.minimap.enabled": false, | |
| "javascript.suggest.autoImports": true, | |
| "extensions.ignoreRecommendations": true, | |
| "editor.fontFamily": "Jetbrains Mono", | |
| "editor.fontSize": 20, | |
| "editor.lineHeight": 1.75, |
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
| #ifndef TIMERS_H_ | |
| #define TIMERS_H_ | |
| //Defines dos modos possíveis para os Timers | |
| #define PWM_1 0b110 | |
| #define PWM_2 0b111 | |
| #define TOGGLE 0b011 | |
| #define ACTIVE 0b001 | |
| #define INACTIVE 0b010 |