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
/* | |
* In this example, I'm using megaTinyCore with the ATtiny412 Development Board | |
* by Leonerd https://www.tindie.com/products/leonerd/attiny412-development-board/ | |
* | |
* The pins for megaTinyCore and 412 are found in: | |
* /Users/jensa/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.6.10/variants/txy2/pins_arduino.h | |
* | |
* Useful pins: | |
* Outputs are referenced using "PIN_PA1" | |
* I2C is referenced on PIN_WIRE_SDA (PA1) / PIN_WIRE_SCL (PA2) |
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 <WiFi.h> | |
#include <HTTPClient.h> | |
// WiFi network name and password: | |
const char * networkName = "your-ssid"; | |
const char * networkPswd = "your-password"; | |
// Internet address to send POST data to | |
const char * hostDomain = "10.13.37.158"; | |
const int hostPort = 3001; |
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
/* improved settimeSerial.ino | |
https://github.com/millerlp/OWHL/blob/master/settime_Serial/settime_Serial.ino | |
Use this to get your real time clock date and time values | |
synchronized closely. | |
Copyright Luke Miller 2015 | |
To use this program, upload it to your board, then open the | |
serial monitor at 57600 baud. Make sure the serial monitor | |
is set to send a 'newline' when you hit return (see the | |
menu in the lower right of the Arduino serial monitor window) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Konkurranse Nespresso</title> | |
<script src="http://code.jquery.com/jquery-1.11.3.min.js" integrity="sha256-7LkWEzqTdpEfELxcZZlS6wAx5Ff13zZ83lYO2/ujj7g=" crossorigin="anonymous"></script> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> |
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 <WiFi.h> | |
/* | |
* Basic code for setting a Dweet with a GET request on an ESP32 | |
* | |
* Original by Liz Miller (www.learnrobotics.org) | |
* Updated for ESP32 by https://gist.github.com/jenschr | |
*/ | |
// WiFi parameters | |
const char* ssid = "your-ssid"; // Replace with your ssid |
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
/********************************************************* | |
Minimal example for LTR329ALS sensor for LectureFeather | |
*********************************************************/ | |
#include "Adafruit_LTR329_LTR303.h" | |
#include <Adafruit_DotStar.h> | |
Adafruit_LTR329 ltr = Adafruit_LTR329(); | |
// There is only one pixel on the board | |
#define NUMPIXELS 1 |
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
// ----------------------------------- | |
// 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 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
/* | |
* Simple code snippet for reading Amphenol | |
* Pressure sensors with I2C output such as | |
* the NPA Series of Surface-Mount Pressure | |
* Sensors NPA-700 and NPA-730. | |
* | |
* This basic snippet will likely work for | |
* similar sensors of other brands also. | |
* I used NPA-730B-05WD to test this. It's | |
* not an Arduino Library, but that's also |
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 <SPI.h> | |
#include <Wire.h> | |
#include <VS1053.h> | |
#include "SampleMp3.h" | |
// These are the pins used for the breakout example | |
#define BREAKOUT_RESET 9 // VS1053 reset pin (output) | |
#define BREAKOUT_CS 10 // VS1053 chip select pin (output) | |
#define BREAKOUT_DCS 6 // VS1053 Data/command select pin (output) | |
#define CARDCS 4 // Card chip select pin |
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
const uint8_t blue = 2; | |
const uint8_t vbatPin = 35; | |
#include <Wire.h> // Only needed for Arduino 1.6.5 and earlier | |
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` | |
float VBAT; // battery voltage from ESP32 ADC read | |
SSD1306 display(0x3c, 4, 15); | |
void setup() | |
{ | |
Serial.begin(115200); | |
pinMode(blue, OUTPUT); |
NewerOlder