This file contains hidden or 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
; ドラム(エンベロープ) | |
; ha2zakura | |
list p=16F84A ; 使用するPICの種類の定義 | |
#include <p16F84A.inc> ; 設定ファイルの指定 | |
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _HS_OSC | |
; _CP_OFF プログラムコードプロテクト無効 | |
; _WDT_OFF ウォッチドドック・タイマ無効 |
This file contains hidden or 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
; キャラクタLCD | |
; ha2zakura | |
list p=16F84A ; 使用するPICの種類の定義 | |
#include <p16F84A.inc> ; 設定ファイルの指定 | |
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _HS_OSC | |
; _CP_OFF プログラムコードプロテクト無効 | |
; _WDT_OFF ウォッチドドック・タイマ無効 |
This file contains hidden or 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
; サーボモータ | |
; ha2zakura | |
list p=16F84A ; 使用するPICの種類の定義 | |
#include <p16F84A.inc> ; 設定ファイルの指定 | |
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _HS_OSC | |
; _CP_OFF プログラムコードプロテクト無効 | |
; _WDT_OFF ウォッチドドック・タイマ無効 |
This file contains hidden or 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
; マトリクスLED | |
; ha2zakura | |
list p=16F84A ; 使用するPICの種類の定義 | |
#include <p16F84A.inc> ; 設定ファイルの指定 | |
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _HS_OSC | |
; _CP_OFF プログラムコードプロテクト無効 | |
; _WDT_OFF ウォッチドドック・タイマ無効 |
This file contains hidden or 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
// とりあえずLチカ | |
// ha2zakura | |
#include <xc.h> // PIC のハードウエア定義 | |
#define _XTAL_FREQ 48000000 | |
#pragma config FOSC = HS, PLLEN = ON, FCMEN = OFF | |
#pragma config IESO = OFF, USBDIV = OFF, CPUDIV = NOCLKDIV | |
#pragma config PWRTEN = OFF, BOREN = OFF, WDTEN = OFF |
This file contains hidden or 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
// Timer0(16bit!)のテスト | |
// ha2zakura | |
#include <xc.h> // PIC のハードウエア定義 | |
#define _XTAL_FREQ 48000000 | |
#define true 1 | |
#define false 0 | |
#define int8_t signed char |
This file contains hidden or 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
LIST P=12f683 | |
#INCLUDE <p12f683.inc> | |
__CONFIG _CP_OFF & _CPD_OFF & _WDT_OFF & _BOD_ON & _IESO_OFF& _PWRTE_ON & _INTOSCIO & _MCLRE_OFF | |
w_temp EQU 0x20 ; Wレジスタ保存用 | |
status_temp EQU 0x21 ; STATUSレジスタ保存用 | |
stand EQU 0x22 ; 立ち上がりフラグ | |
;********************************************************************** |
This file contains hidden or 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 <SPI.h> | |
#include <MIDI.h> // http://playground.arduino.cc/Main/MIDILibrary | |
#define SS 10 | |
#define A0 9 | |
int tone1Interval = 0; | |
int tone2Interval = 0; | |
int tone3Interval = 0; |
This file contains hidden or 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
// I2Cのテスト(AQM0802A) | |
// ha2zakura | |
#include <xc.h> // PIC のハードウエア定義 | |
#define _XTAL_FREQ 48000000 | |
#define true 1 | |
#define false 0 | |
#define int8_t signed char |
This file contains hidden or 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
const ADMIN_USER_ID = {製作者のLINE ID}; | |
const CHROSTE_GROUP_ID = {ユニットのLINEグループID}; | |
const CHANNEL_ACCESS_TOKEN = {LINE Messaging APIのアクセストークン}; | |
// 毎週日曜日のトリガー | |
function weekly() { | |
post_differs(CHROSTE_GROUP_ID); | |
} | |
// 毎夜のトリガー |