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
import serial | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description="UART reader for python enabled devices") | |
# positional arguments | |
parser.add_argument("device_location", help='device location through which serial data is communicated. Eg. dev/ttyACM0') | |
parser.add_argument("baud_rate", help='Baud rate in which serial data is communicated. Eg. 9600') | |
args = parser.parse_args() |
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 | |
start_index=$1 | |
end_index=$2 | |
if [ -z $start_index ] || [ -z $end_index ] ; then | |
echo "Kindly provide starting and ending index" | |
exit 1 | |
fi |
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
{ | |
"name":"Living Room", | |
"is_master":1, | |
"devices":[ | |
{ | |
"pin":1, | |
"value":0, | |
"name":"Living Room Light" | |
}, | |
{ |
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
PROJECT_NAME := rom_data_storage | |
include $(IDF_PATH)/make/project.mk |