##Go here https://github.com/technobly/SparkCore-LiquidCrystalSPI
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
//----------------------------------------------------------------- | |
// BMP085/BMP180 Barometric Pressure + Temp sensor for Spark Core | |
//================================================================= | |
// Copy this into a new application at: | |
// https://www.spark.io/build and go nuts! | |
//----------------------------------------------------------------- | |
// Technobly / BDub - Jan 2014 | |
//================================================================= | |
/*************************************************** |
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
//-------------------------------------------------- | |
// Intro to Inline Assembly on the Spark Core (WIP) | |
//================================================== | |
// Copy this into a new application at: | |
// https://www.spark.io/build and go nuts! | |
//-------------------------------------------------- | |
// Technobly / BDub - Jan 2014 | |
//================================================== | |
uint16_t pin = D0; |
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
//-----------------------------------------------// | |
// RTC DS1307 LIBRARY FOR SPARK CORE // | |
//===============================================// | |
// Copy this into a new application at: // | |
// https://www.spark.io/build and go nuts! // | |
// !! Pinouts on line 254 below !! // | |
//-----------------------------------------------// | |
// Technobly / BDub - Jan 12th 2014 // | |
//===============================================// | |
#pragma GCC diagnostic ignored "-Wunused-but-set-variable" |
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 / SPI LCD BACKPACK LIBRARY FOR SPARK CORE // | |
//===============================================// | |
// Copy this into a new application at: // | |
// https://www.spark.io/build and go nuts! // | |
// !! Pinouts on line 427 below !! // | |
//-----------------------------------------------// | |
// Technobly / BDub - Jan 16th 2014 // | |
//===============================================// |
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
/*------------------------------------------------------------------------- | |
Spark Core library to control RadioShack Tricolor LED Strip | |
Currently handles 400 KHz bitstream on Spark Core, | |
with LEDs wired for GRB color order. | |
Written by Phil Burgess / Paint Your Dragon for Adafruit Industries. | |
Modified to work with Spark Core by Technobly. | |
Contributions by PJRC and other members of the open source community. | |
Adafruit invests time and resources providing this open source code, |
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
//----------------------------------------------- | |
// Fast Read Example | |
//=============================================== | |
// Copy this into a new application at: | |
// https://www.spark.io/build and go nuts! | |
//----------------------------------------------- | |
// Technobly / BDub - Jan 22nd 2014 | |
//=============================================== | |
#pragma GCC diagnostic ignored "-Wunused-value" |
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" | |
/* ================ HTTP ================ */ | |
TCPClient client; | |
char buffer[1024]; | |
char * http_get(char const * hostname, String path) { | |
if (client.connect(hostname, 80)) { | |
client.print("GET "); |
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
//----------------------------------------------- | |
// GROVE LCD RGB Library For Spark Core | |
//=============================================== | |
// http://www.seeedstudio.com/wiki/Grove_-_LCD_RGB_Backlight | |
// https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight | |
//----------------------------------------------- | |
// Technobly / BDub - Jan 30th, 2014 | |
//=============================================== | |
#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
/* | |
* ================================= | |
* RUBE GOLDBERG LED TOGGLE | |
* --------------------------------- | |
* BDub / Technobly - Feb 11th, 2014 | |
* ================================= | |
* | |
*/ | |
uint16_t TIM_ARR = (uint16_t)(65535/6); // Calc PWM period. |