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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "delay.cpp" | |
#include "openserial.cpp" | |
int openFlags ; | |
const char *path = "/dev/tty.usbserial-AE01APTO" ; | |
// const char *path = "/dev/tty.usbserial" ; |
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 <LiquidCrystal.h> | |
// http://arduino.cc/en/Reference/AnalogReference | |
unsigned int t,c; | |
float sc; | |
int sensor0 = A0 ; | |
int value = 0 ; | |
// initialize the library with the numbers of the interface pins |
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 <LiquidCrystal.h> | |
// http://arduino.cc/en/Reference/AnalogReference | |
unsigned int t,c; | |
float sc; | |
int sensor0 = A0 ; | |
int value = 0 ; | |
// initialize the library with the numbers of the interface pins |
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
/* | |
http://arduino.cc/playground/Main/PS2Keyboard | |
http://arduino.cc/playground/Main/PS2KeyboardExt2 | |
http://msdn.microsoft.com/en-us/library/windows/hardware/gg463446.aspx | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either |
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
japanese USB Keyboard: | |
Interface 0 HID Report Descriptor Keyboard | |
Usage Page (Generig Desktop) 0501 | |
Usage (Keyboard) 0906 | |
Collection (Application) A101 | |
Usage Page (Keyboard/Keypad) 0507 | |
Usage Minimum (Keyboard Left Control) 19E0 | |
Usage Maximum (Keyboard Right GUI) 29E7 | |
Logical Minimum (0) 1500 |
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
#! /usr/local/bin/gawk -f | |
# chkihex.awk | |
# | |
# check intel-hex file | |
# 2012/10/09 K.Takesita | |
# | |
# Intel HEX format | |
# http://en.wikipedia.org/wiki/Intel_HEX | |
# |
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
/* | |
http://arduino.cc/playground/Main/PS2Keyboard | |
http://arduino.cc/playground/Main/PS2KeyboardExt2 | |
http://msdn.microsoft.com/en-us/library/windows/hardware/gg463446.aspx | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either |
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
// Pinball controller | |
// Arduino Leonardo | |
// 20121102 K.takesita | |
// | |
int Tilt=A1; | |
int Rpaddle=A3; | |
int Lpaddle=A4; | |
int Shoot=A5; |
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
// LM35DZ x6 Thermal Logger | |
// 2012.11.30 K.Takesita | |
// | |
// http://arduino.cc/en/Reference/AnalogReference | |
unsigned int t,c; | |
float sc; | |
// unsigned long time; | |
#define NUM_LM35 6 | |
int LM35[NUM_LM35] = {A0,A1,A2,A3,A4,A5}; // Analog port |
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
// Androld Serial Monitor Lite | |
// tested 2012.12.10 | |
// MacOSX 10.7 | |
// Arduino IDE 1.0.2 | |
// | |
// Arduino UNO R3 -- OK | |
// Arduino Leonardo -- 問題が発生したため、Android USB Serial Monitorを終了しました | |
// →ConnectしてもAndroid→Arduino方向しかデータがいかない (RX点滅,TX消灯のまま) | |
// Arduino Micro -- Leonardoと同じ現象 | |
// |