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
#include <IRremote.h> | |
#include "Timer.h" | |
#define CMD_CONST_COLOUR (1 << 4) | |
#define CMD_FLASH (1 << 5) | |
#define CMD_ALT (1 << 6) | |
#define CMD_OFF 0 | |
#define COL_RED_K (1 << 4) | |
#define COL_GREEN_K (1 << 5) |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
#include "lodepng.h" | |
#define WIDTH 400 | |
#define HEIGHT 400 | |
#define PI (3.141592653589793) |
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
int luaopen_screen(lua_State *L) { | |
luaL_newmetatable(L, SCREENMETA); | |
luaL_register(L, "screen", screenLib); | |
return 1; | |
} |
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
/* | |
* A Lua library in C to display interface | |
* with the chumby frame buffer | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> |
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
luaL_newmetatable(L, SCREENMETA); |
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
local g = love.graphics | |
PagerList = { | |
rowsPerPage = 4, | |
spaceBetweenRow = 44, | |
initSpace = 24, | |
noPages = 0, | |
currentPage = 0, | |
noRows = 0, | |
rowsToDisplay = 0, |
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
gcc -Wall -shared -I/mnt/storag | |
e/Lua/include/ -L/mnt/storage/Lua/lib/ -llua -lm -ldl -o screen.so screen.c |
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
$.postify = function(value) { | |
var result = {}; | |
var buildResult = function(object, prefix) { | |
for (var key in object) { | |
var postKey = isFinite(key) | |
? (prefix != "" ? prefix : "") + "[" + key + "]" | |
: (prefix != "" ? prefix + "." : "") + key; |
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
gcc -Wall -shared -I/usr/local/include/ -L/usr/local/lib/ -llua -o serial.so serial.c |
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
#include <stdlib.h> | |
#include <MeggyJrSimple.h> | |
byte screen[8][8] = {{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0}, |
NewerOlder