Skip to content

Instantly share code, notes, and snippets.

View crossdjinn's full-sized avatar

CrossDJinn crossdjinn

View GitHub Profile
@crossdjinn
crossdjinn / flac_to_wav.sh
Last active December 22, 2018 23:15
Bash, ffmpeg convert any all multimedia in a file into another one/two whatever
for file in *.flac
do
ffmpeg -i "$file" -f wav "$file".wav
done
@crossdjinn
crossdjinn / random_pulse_led_effect.ino
Last active December 22, 2018 23:14
C++, Arduino, LED pulse effect everytime different one
int ledPin = 11;
float sinVal;
int ledVal;
void setup(){
pinMode(ledPin, OUTPUT);
}
void loop(){
for(int x=0; x<180; x++) {
gnome-desktop-item-edit --create-new ~/Desktop
#include "TrinketHidCombo.h"
#define PIN_ENCODER_A 4
#define PIN_ENCODER_B 5
#define TRINKET_PINx PINB
static uint8_t enc_prev_pos = 0;
static uint8_t enc_flags = 0;
void setup()