Adding to main NeoPixel library... see here https://github.com/technobly/SparkCore-NeoPixel/commit/307a7dd618a2e8f757e429875d9d1c8af8a92836
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
#define SMTP_SERVER "smtp.yourserver.com" | |
#define SMTP_USER_BASE64 "base64_encode_your_user" | |
#define SMTP_PASS_BASE64 "base64_encode_your_pass" | |
#define SMTP_FROM_EMAIL "[email protected]" | |
#define SMTP_TO_EMAIL "[email protected]" | |
#define SMTP_SUBJECT "Email from a Core!" | |
#define SMTP_BODY "Body body body" | |
#include "application.h" |
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
// WIRELESS SERVO EXAMPLE CODE | |
// BDub 4/7/2014 | |
// | |
// Connect RED wire to VIN (~5V) | |
// Connect ORANGE, YELLOW, or WHITE wire to A0 (servo signal) | |
// Connect BLACK or BROWN wire to GND (0V) | |
// Adjust these connections for your particular servo | |
// if you have a wiring diagram for it. | |
// | |
// |
I hereby claim:
- I am technobly on github.
- I am bdub (https://keybase.io/bdub) on keybase.
- I have a public key whose fingerprint is 4C0E 1402 48CC C55E 1312 707D B62C 54A3 C279 6C78
To claim this, I am signing this object:
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 "application.h" | |
Servo myservo; // create servo object to control a servo | |
// a maximum of eight servo objects can be created | |
int pos = 0; // variable to store the servo position | |
void setup() | |
{ | |
myservo.attach(A0); // attaches the servo on the A0 pin to the servo object |
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
/* | |
****************************************************************************** | |
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved. | |
* | |
* 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 | |
* version 3 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
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
/* | |
****************************************************************************** | |
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved. | |
* | |
* 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 | |
* version 3 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
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 "application.h" | |
SYSTEM_MODE(SEMI_AUTOMATIC); | |
// ALL_LEVEL, TRACE_LEVEL, DEBUG_LEVEL, INFO_LEVEL, WARN_LEVEL, ERROR_LEVEL, PANIC_LEVEL, NO_LOG_LEVEL | |
Serial1DebugOutput debugOutput(9600, ALL_LEVEL); | |
unsigned long whenPublished = 0; | |
retained int publishCount = 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
// COMPILE from firmware/modules $ | |
// make clean all PLATFORM_ID=10 APPDIR=~/code/fw-apps/band-select COMPILE_LTO=n DEBUG_BUILD=y -s program-dfu | |
// | |
// NOTE: APPDIR=~/code/fw-apps/band-select can be APP=band-select if that's easier | |
/* Includes ------------------------------------------------------------------*/ | |
#include "application.h" | |
#include "cellular_hal.h" | |
typedef struct { |