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
//midi test | |
void setup() { | |
// Initialise Serial connection | |
Serial.begin(115200); | |
//midi | |
//nodemcu use pin D4 for TX | |
Serial1.begin(31250); |
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
#include <ESP8266WiFi.h> | |
#include <WiFiUDP.h> | |
WiFiUDP UDP; | |
const char* ssid = "sensorNode"; | |
const char* password = "1234567890"; | |
boolean wifiConnected = false; |
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
/* | |
* This sketch shows the WiFi event usage | |
* | |
* In this example you can receive and process below events. | |
* Refer to ESP8266WiFiType.h | |
* | |
typedef enum { | |
WIFI_EVENT_STAMODE_CONNECTED = 0, | |
WIFI_EVENT_STAMODE_DISCONNECTED, | |
WIFI_EVENT_STAMODE_AUTHMODE_CHANGE, |
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
/* | |
Udp NTP Client | |
Get the time from a Network Time Protocol (NTP) time server | |
Demonstrates use of UDP sendPacket and ReceivePacket | |
For more on NTP time servers and the messages needed to communicate with them, | |
see http://en.wikipedia.org/wiki/Network_Time_Protocol | |
created 4 Sep 2010 |
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
#define BUILDIN_LED 2 | |
#define ledPIN1 23 | |
#define ledPIN2 22 | |
// ---------------------------------------------------------------------------------- | |
void first_task(void *pvParameter){ | |
/* Configure the IOMUX register for pad BLINK_GPIO (some pads are | |
muxed to GPIO on reset already, but some default to other | |
functions and need to be switched to GPIO. Consult the | |
Technical Reference for a list of pads and their default |
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
const int ledPin = 2; // the number of the LED pin | |
const int threshold = 40; // the number of the LED pin | |
int ledState = LOW; // ledState used to set the LED | |
void setup() { | |
// put your setup code here, to run once: | |
//pinMode(ledPin, OUTPUT); | |
Serial.begin(115200); | |
touchAttachInterrupt(T0 , click , threshold ); |
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
#include <PN532.h> | |
#include "Keyboard.h" | |
//#define SCK 13 | |
//#define MOSI 11 | |
//#define SS 10 | |
//#define MISO 12 | |
#define SCK 15 | |
#define MOSI 16 |
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
#include <stdio.h> | |
void app_main() { | |
printf("Hello world\n"); | |
} |
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
@echo off | |
set arduino_path=c:\arduino-1.6.12 | |
set firmware=Arduino-COMBINED-dfu-usbserial-atmega16u2-Uno-Rev3.hex | |
set avrdude.exe=%arduino_path%\hardware\tools\avr\bin\avrdude.exe | |
set avrdude.conf=%arduino_path%\hardware\tools\avr\etc\avrdude.conf | |
%avrdude_path% -c usbtiny -p m16u2 -C %avrdude_conf% -F -D -U flash:w:%firmware% -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m |
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
@echo off | |
set arduino_path=c:\arduino-1.6.12 | |
set avrdude.exe=%arduino_path%\hardware\tools\avr\bin\avrdude.exe | |
set avrdude.conf=%arduino_path%\hardware\tools\avr\etc\avrdude.conf | |
%avrdude_path% -c usbtiny -v -p m16u2 -C %avrdude_conf% |