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
/** | |
Interrupt example - The AVR way | |
For use with Arduino UNO and other 328 Arduino's | |
- Connect a button to pin 2 (with 10k pulldown) | |
- Connect a LED to pin 9 (with 220/330 Ohm resistor) | |
Nov 2013, Jens Brynildsen http://flashgamer.com/arduino/ | |
**/ |
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
/** | |
Interrupt example - The Arduino way | |
For use with Arduino UNO and other 328 Arduino's | |
- Connect a button to pin 2 (with 10k pulldown) | |
- Connect a LED to pin 9 (with 220/330 Ohm resistor) | |
Nov 2013, Jens Brynildsen http://flashgamer.com/arduino/ | |
**/ | |
byte ledPin = 9; |
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
/* Simplified sleep Demo | |
* --------------------- | |
* Shows how to make the Arduino sleep and wake up again. | |
* | |
* Connect pin 2 and 12 to 5V via a pullup-resistor (10k) | |
* Connect pin 12 to ground to make the Arduino sleep | |
* Connect pin 2 to ground to make the Arduino wake up again | |
* | |
* Based on the code in http://www.gammon.com.au/forum/?id=11488 | |
* by Nick Gammon. Example written by Jens Chr Brynildsen 2013 |
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
/* | |
Replace the first lines in your FONATest example file with the lines below. It's basically just changing from SoftwareSerial to HardwareSerial + changed pins to match the Teensy. | |
*/ | |
#include <SoftwareSerial.h> | |
#include <HardwareSerial.h> | |
#include "Adafruit_FONA.h" | |
#define FONA_RX 1 | |
#define FONA_TX 0 | |
#define FONA_RST 4 |
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 <SD.h> | |
const int SDChipSelect = 4; // SS pin on the SD card. | |
// Other pins connected to normal SPI | |
File root; | |
int DeletedCount = 0; | |
int FolderDeleteCount = 0; | |
int FailCount = 0; | |
String rootpath = "/"; |
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
int8_t Adafruit_FONA::checkCallStatus(void) { | |
uint16_t level; | |
if (! sendParseReply(F("AT+CPAS"), F("+CPAS: "), &level) ) return 0; | |
return level; | |
} |
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
int8_t Adafruit_FONA::checkCallStatus(void) { | |
uint16_t level; | |
if (! sendParseReply(F("AT+CPAS"), F("+CPAS: "), &level) ) return 0; | |
return level; | |
} |
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
// ----------------------------------- | |
// Control 8 LEDs over the Internet | |
// Hook the LED's to a Particle Photon | |
// and use this script with Build. | |
// ----------------------------------- | |
int led1 = D0; | |
int led2 = D1; | |
int led3 = D2; | |
int led4 = D3; | |
int led5 = D4; |
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 <MeMCore.h> | |
MeIR ir; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
if (ir.decode()) | |
{ |
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
// --------------------------------------------------------------------------- | |
// Created by Francisco Malpartida on 1/1/12. | |
// Copyright 2011 - Under creative commons license: | |
// Attribution-NonCommercial-ShareAlike CC BY-NC-SA | |
// | |
// This software is furnished "as is", without technical support, and with no | |
// warranty, express or implied, as to its usefulness for any purpose. | |
// | |
// Thread Safe: No | |
// Extendable: Yes |
OlderNewer