Skip to content

Instantly share code, notes, and snippets.

View houmei's full-sized avatar

Katunori Takesita houmei

View GitHub Profile
@houmei
houmei / cookieclicker.ino
Created September 15, 2013 16:20
Cookie Clicker (Mouse Click)
#include <SoftwareSerial.h>
const int ABTN=8;
const int BBTN=9;
const int CBTN=10;
const int LED=13;
// SoftwareSerial LedSerial(2,3); // for UNO
@houmei
houmei / cookieclicker3.ino
Created September 18, 2013 15:36
CookieClicker3 click mouse-button with TimerOne library
#include <TimerOne.h>
// CookieClicker TimerOne version
// 20130919
const int ABTN=8;
const int BBTN=9;
const int CBTN=10;
const int LED=13;
@houmei
houmei / CookieClicker4.ino
Created September 19, 2013 17:55
CookieClicker4 -- disable filicker 7segLED , certain toggle MouseClick ON/OFF
#include <TimerOne.h>
// CookieClicker TimerOne version
// 20130919
const int ABTN=8;
const int BBTN=9;
const int CBTN=10;
const int LED=13;
@houmei
houmei / LApack.cc
Created October 8, 2013 18:35
GNU-APL1.0 for MacOSX trial
*
This file is part of GNU APL, a free implementation of the
ISO/IEC Standard 13751, "Programming Language APL, Extended"
Copyright (C) 2008-2013 Dr. Jürgen Sauermann
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@houmei
houmei / UdpSocket.cc
Created October 8, 2013 18:47
GNU-APL1.0 for MacOSX trial
/*
This file is part of GNU APL, a free implementation of the
ISO/IEC Standard 13751, "Programming Language APL, Extended"
Copyright (C) 2008-2013 Dr. Jürgen Sauermann
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@houmei
houmei / my_byteorder.h
Created October 8, 2013 19:00
GNU-APL1.0 for MacOSX trial
#define __swap64gen(x) \
(__uint64_t)((((__uint64_t)(x) & 0xff) << 56) | \
((__uint64_t)(x) & 0xff00ULL) << 40 | \
((__uint64_t)(x) & 0xff0000ULL) << 24 | \
((__uint64_t)(x) & 0xff000000ULL) << 8 | \
((__uint64_t)(x) & 0xff00000000ULL) >> 8 | \
((__uint64_t)(x) & 0xff0000000000ULL) >> 24 | \
((__uint64_t)(x) & 0xff000000000000ULL) >> 40 | \
((__uint64_t)(x) & 0xff00000000000000ULL) >> 56)
@houmei
houmei / fizzbuzz.ino
Created January 19, 2014 14:46
Galileo: lcd.init() is required when using LiquidCrystal library
// FizzBuzz for Arduino LCD Keypad Shield
//
// include the library code:
#include <LiquidCrystal.h>
unsigned int t;
int adc_key_in ;
// initialize the library with the numbers of the interface pins
@houmei
houmei / galileo.dmesg
Created January 19, 2014 16:55
Intel Galileo dmesg Poky 9.0.2 (Yocto Project 1.4 Reference Distro) 1.4.2 clanton
/ # dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.7-yocto-standard (clntonsw@irsswdev001) (gcc version 4.7.2 (GCC) ) #1 Tue Oct 1 00:07:32 IST 2013
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000096fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000097000-0x0000000000097fff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000098000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000000f0defff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000f0df000-0x000000000f11efff] ACPI data
@houmei
houmei / pinHIGHLOW.ino
Created February 2, 2014 15:28
Intel Galileo GPIO test
unsigned long t;
int Loop=10000;
int pin=1;
void setup() {
Serial.begin(9600);
// initialize the digital pin as an output.
pinMode(pin, OUTPUT);
delay(1000);
}
@houmei
houmei / galileo-boot-sd.txt
Created February 7, 2014 02:44
Intel Galileo boot message
Press [Enter] to directly boot.
Press [F7] to show boot menu options.