This file contains 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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
//A simple C# class to post messages to a Slack channel | |
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
public class SlackClient | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Diagnostics; | |
using Microsoft.Win32; | |
using System.Runtime.InteropServices; | |
using System.Management; | |
using System.Net.Sockets; | |
using System.IO; |
This file contains 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
/*******Interrupt-based Rotary Encoder Sketch******* | |
by Simon Merrett, based on insight from Oleg Mazurov, Nick Gammon, rt, Steve Spence | |
modified at EE to include the select switch | |
Tutorial at: | |
http://exploreembedded.com/wiki/Interactive_Menus_for_your_project_with_a_Display_and_an_Encoder | |
*/ | |
static int pinA = 2; // Our first hardware interrupt pin is digital pin 2 | |
static int pinB = 3; // Our second hardware interrupt pin is digital pin 3 |