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
#!/bin/bash | |
# | |
# Change this to specify a different handbrake preset. You can list them by running: "HandBrakeCLI --preset-list" | |
# | |
#set -ux | |
set +e | |
PRESET="Amazon Fire 720p30" # tweaked to work on my folks old LG smart tv. | |
if [ -z "$1" ] ; then | |
TRANSCODEDIR="." | |
else |
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
#!/bin/bash | |
# Usage: curl https://gist.githubusercontent.com/lukicdarkoo/e33e00c6780ad0215d3932b810a10e46/raw | sh | |
echo "In case of any issues please consult cosmicpi.org for help, or contact us via Facebook " | |
echo "--- Expand the file system ---" | |
sudo resize2fs /dev/mmcblk0p2 | |
echo "--- Update OS ---" | |
sudo apt -y update |
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
/*work in progress - single channel mode for V1 cosmic Pi hardware. | |
to do - disable on board DAC (not used in V1, I2C instead) | |
Check pinouts for SPI/Single channel HV | |
Refer to V1 schematic from here: | |
https://www.ohwr.org/attachments/3847/CosmicPiV1point0.zip | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
//updated to include a whole bunch of extra functions 120818 |
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
#undef HID_ENABLED | |
// Arduino Due ADC->DMA->USB 1MSPS | |
// by stimmer | |
// from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315 | |
// Input: Analog in A0 | |
// Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM | |
// on linux, to stop the OS cooking your data: | |
// stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr |