Skip to content

Instantly share code, notes, and snippets.

View gregyjames's full-sized avatar
🔺
Avoiding Frontend

Greg gregyjames

🔺
Avoiding Frontend
View GitHub Profile
@gregyjames
gregyjames / midi.ino
Last active June 22, 2018 08:19 — forked from arion/midi.ino
Arduino Launchpad
#include <MIDI.h>
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
#include <math.h>
SoftwareSerial mySerial(11, 10); // RX, TX
MIDI_CREATE_DEFAULT_INSTANCE();
bool isMp3Mode = false;
#include <MIDI.h>
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
#include <math.h>
SoftwareSerial mySerial(11, 10); // RX, TX
MIDI_CREATE_DEFAULT_INSTANCE();
bool isMp3Mode = false;
@gregyjames
gregyjames / gist:d4b910b0e02602af967b
Last active August 29, 2015 14:22
Return JSON with libcurl.net
public static void Main(String[] args)
{
try {
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easy = new Easy();
Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData);
easy.SetOpt(CURLoption.CURLOPT_URL, args[0]);
easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);