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
| // Digital Clock : by Akizuki's Large LED and Energia/MSP430G2553 | |
| // 秋月巨大液晶利用のデジタル時計/温度計 | |
| // | |
| // 2015-01-27 : リリース | |
| // 2015-01-31 : コロンの明るさをPWMで調整 | |
| #include <sRTC.h> | |
| #include <legacymsp430.h> | |
| RealTimeClock myRTC; |
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
| var b = require('bonescript'); | |
| var exec = require('child_process').exec, child; | |
| var fs = require('fs'); | |
| var filename = '/root/test.msg'; | |
| function sendMessage(to, subject, message) { | |
| // create message file | |
| var msg = 'To: ' + to + '\n' + 'Subject: ' + subject + '\n' + message + '\n'; |
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
| // Read PIR, Write csv, Push to ShowSensor | |
| // | |
| // 2015-02-11 : add function : send email when out door sensor detect a visitor | |
| // | |
| var b = require('bonescript'); | |
| var fs = require('fs'); | |
| var http = require('http'); | |
| var exec = require('child_process').exec, child; // for mail | |
| var mailfile = '/root/sendmail.msg'; // for mail |
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 "mbed.h" | |
| #include "SLCD.h" | |
| #include "MAG3110.h" | |
| #include "fft4g.h" | |
| #include "aqm1248a_lcd.h" | |
| #define NMAX 256 | |
| #define NMAXSQRT 32 | |
| #define MAX(x,y) ((x) > (y) ? (x) : (y)) |
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 <EtherCard.h> | |
| #include <Wire.h> | |
| #include <HDC1000.h> | |
| #include <Adafruit_MPL115A2.h> | |
| #define USE_DHCP 0 | |
| #define USE_DNS 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
| /* | |
| $Id:$ | |
| ST7565 LCD library! | |
| Copyright (C) 2010 Limor Fried, Adafruit Industries | |
| 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 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
| /* | |
| $Id:$ | |
| ST7565 LCD library! | |
| Copyright (C) 2010 Limor Fried, Adafruit Industries | |
| 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 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 <ST7565.h> | |
| #define NMAX 256 | |
| #define NMAX_HALF (NMAX/2) | |
| #define NMAXSQRT 16 | |
| #define MAX(x,y) ((x) > (y) ? (x) : (y)) | |
| // fft buffer / workarea | |
| float micBuffer[NMAX+1]; |
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
| // pin P1.6:15 - Serial data out (MOSI) | |
| // pin P1.5: 7 - Serial clock out (SCLK) | |
| // pin P5.7:17 - Data/Command select (RS or A0) | |
| // pin P2.5:19 - LCD reset (RST) | |
| // pin P3.0:18 - LCD chip select (CS) | |
| ST7565 lcd(15, 7, 17, 19, 18); | |
| void setupTaskLCD() { |
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 "mbed.h" | |
| #include "rtos.h" | |
| AnalogIn vol(dp4); | |
| AnalogIn mea(dp11); | |
| AnalogIn fre(dp13); | |
| PwmOut pwm(dp18); | |
| PwmOut led(dp1); | |
| float prevPwm = 0.0; |
OlderNewer