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/ash | |
echo "Choose Device to connect" | |
echo "Device 1: B28S" | |
echo "Device 2: PT-Music" | |
echo "Device 3: Memorex MW212" | |
echo "Device 4: ilink" | |
echo "Device 5: BT-163" | |
read -n 1 -s resp |
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
/* | |
* This file implements code to read data from and set data for | |
* TI-make BQ27441 battery fuel gauge. Data to be set include | |
* "Design Capacity", "Termination Voltage" etc. Data to be read | |
* include "Voltage", "Current", "Temperature", "SOC", etc. | |
*/ | |
var i2c = I2C1; |
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 | |
# Sign a file with a private key using OpenSSL | |
# Encode the signature in Base64 format | |
# | |
# Usage: sign <file> <private_key> | |
# | |
# NOTE: to generate a public/private key use the following commands: | |
# | |
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |