Skip to content

Instantly share code, notes, and snippets.

View mohitbhoite's full-sized avatar

Mohit Bhoite mohitbhoite

View GitHub Profile
@mohitbhoite
mohitbhoite / attiny-lander-lcd.cpp
Last active December 27, 2024 16:41
Surya 280, a solar powered temperature and humidity monitor using ATtiny85 microcontroller and BME280 sensor. Displayed on a four digit LCD.
//
// 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
@mohitbhoite
mohitbhoite / numitron-clock.ino
Created October 30, 2023 18:40
A numitron tube clock using the MAX7313 and an Adafruit Trinket
#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
@mohitbhoite
mohitbhoite / oled-animation.cpp
Created December 8, 2023 05:17
Running simple animations on 128x32 OLED display connected to Particle Photon
// 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);