This file contains 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
#!/bin/bash | |
#TPUT COLORS | |
blue='tput setaf 4' | |
mag='tput setaf 5' | |
green='tput setaf 2' | |
nc='tput sgr0' | |
red='tput setaf 1' | |
#VARIABLES |
This file contains 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
/** | |
* @file stack.c | |
* @author storca (storca@mail.com) | |
* @brief Implementation of a stack in C with a fixed size | |
*/ | |
#define STACK_SIZE 64 | |
#include <stdio.h> //printf | |
#include <string.h> //memcpy |
This file contains 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
/** | |
* @file sllist.c | |
* @author storca (storca@mail.com) | |
* @brief Generic implementation of a single-linked list | |
* Cells are added to the left, and deleted on the right | |
* @date 2021-11-11 | |
* | |
* Illustration | |
* | |
* list_add(aa) |
This file contains 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
/** | |
* @file fifo.c | |
* @author storca (storca@mail.com) | |
* @brief Minimal implemntation of a FIFO Buffer in C using pointers | |
* @date 2022-10-13 | |
* | |
* @copyright Copyright (c) 2022 | |
* | |
* -> |first| -> |cell| -> |cell| -> ... -> |cell| -> |last| -> NULL | |
* {FIFO Buffer} -> [last| -> NULL |
This file contains 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
""" | |
(Very) simple script to read and configure the DORJI DRF1278DM module (firmware version 2.7) | |
The original software provided by the manufacturer did not work on my computer, so I made my own (very simple) version | |
Script made following the manufacturer documentation : | |
http://www.dorji.com/docs/data/DRF1278DM.pdf | |
""" | |
from serial import Serial |