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
// This #include statement was automatically added by the Particle IDE. | |
#include "Adafruit_CCS811.h" | |
// This #include statement was automatically added by the Particle IDE. | |
#include <Adafruit_SSD1306_RK.h> | |
// #include <SPI.h> | |
// #include <Wire.h> | |
#include <Adafruit_GFX.h> | |
//SYSTEM_MODE(MANUAL); |
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 <RTClib.h> | |
#include <Adafruit_DotStar.h> | |
#include <MAX7313.h> | |
#include "Wire.h" | |
#if defined(ARDUINO_ARCH_SAMD) | |
// for Zero, output on USB Serial console, remove line below if using programming port to program the Zero! | |
#define Serial Serial | |
#endif |
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
// | |
// Project link: https://www.bhoite.com/sculptures/surya-280/ | |
// | |
#include <TinyBME280.h> | |
//#include <TinyWireM.h> | |
//#include <USI_TWI_Master.h> | |
#include <avr/sleep.h> //Needed for sleep_mode | |
#include <avr/wdt.h> //Needed to enable/disable watch dog timer | |
//Following is the header file for the LCD module bought on ebay | |
//Seller link https://www.ebay.com/itm/284843842249 |
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
// | |
// Project link: https://www.bhoite.com/sculptures/satellite-2202/ | |
// | |
#include "Adafruit_SHT31.h" | |
//#include <TinyWireM.h> | |
//#include <USI_TWI_Master.h> | |
#include <avr/sleep.h> //Needed for sleep_mode | |
#include <avr/wdt.h> //Needed to enable/disable watch dog timer | |
//Following is the header file for the LCD module bought on ebay | |
//Seller link https://www.ebay.com/itm/284843842249 |
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
/* | |
* ATtiny85 based VU meter | |
* Author: Mohit Bhoite | |
* Date: 01 August 2022 | |
* | |
* Based on original code by Adafruit Industries. Distributed under the BSD license. | |
* and David Johnson-Davies - www.technoblogy.com | |
* CC BY 4.0 Licensed under a Creative Commons Attribution 4.0 International license: | |
* http://creativecommons.org/licenses/by/4.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
#include <avr/sleep.h> //Needed for sleep_mode | |
#include <avr/wdt.h> //Needed to enable/disable watch dog timer | |
void setup() { | |
pinMode(0, OUTPUT);// LED connected to pin 5 which is recognised as pin 0 by arduino | |
ADCSRA &= ~(1<<ADEN); //Disable ADC, saves ~230uA | |
//Power down various bits of hardware to lower power usage | |
set_sleep_mode(SLEEP_MODE_PWR_DOWN); //Power down everything, wake up from WDT | |
sleep_enable(); | |
} |
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
/********************************************************************* | |
This is an example for our Monochrome OLEDs based on SSD1306 drivers | |
Pick one up today in the adafruit shop! | |
------> http://www.adafruit.com/category/63_98 | |
This example is for a 128x64 size display using I2C to communicate | |
3 pins are required to interface (2 I2C and one reset) | |
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
/* Function prototypes -------------------------------------------------------*/ | |
int tinkerDigitalRead(String pin); | |
int tinkerDigitalWrite(String command); | |
int tinkerAnalogRead(String pin); | |
int tinkerAnalogWrite(String command); | |
/* This function is called once at start up ----------------------------------*/ | |
void setup() | |
{ | |
//Setup the Tinker application here |
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 <RTClib.h> | |
#include <Adafruit_DotStar.h> | |
#include <MAX7313.h> | |
#include "Wire.h" | |
#if defined(ARDUINO_ARCH_SAMD) | |
// for Zero, output on USB Serial console, remove line below if using programming port to program the Zero! | |
#define Serial Serial |
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 <Adafruit_NeoPixel.h> | |
int red,green,blue,white = 0; | |
// IMPORTANT: Set pixel COUNT, PIN and TYPE | |
#define PIN 4 | |
#define NUMPIXELS 8 | |
//Initialize the neopixel strip | |
Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_RGBW + NEO_KHZ800); |
NewerOlder