Skip to content

Instantly share code, notes, and snippets.

@asheeshr
asheeshr / mstest.ino
Last active July 10, 2020 20:24
Simple Test File for Microsmooth Library
#include <microsmooth.h>
uint16_t *ptr;
void setup()
{
Serial.begin(9600);
pinMode(3, INPUT);
ptr = ms_init(EMA);
if(ptr == NULL) Serial.println("No memory");
@asheeshr
asheeshr / advancedsettings.xml
Created July 23, 2014 10:15
Switching player to DVD-Player from OMX for XBMC. ~/.xbmc/userdata
<advancedsettings>
<video>
<defaultplayer>dvdplayer</defaultplayer>
<defaultdvdplayer>dvdplayer</defaultdvdplayer>
</video>
</advancedsettings>
@asheeshr
asheeshr / ardprintf.c
Last active January 11, 2024 16:37
A printf function for serial communication from Arduino boards
/*
This code should be pasted within the files where this function is needed.
This function will not create any code conflicts.
The function call is similar to printf: ardprintf("Test %d %s", 25, "string");
To print the '%' character, use '%%'
This code was first posted on http://arduino.stackexchange.com/a/201
*/