Skip to content

Instantly share code, notes, and snippets.

hpwit

Block or report user

Report or block hpwit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hpwit
hpwit / codecorr.ino
Last active May 16, 2020
display sd
View codecorr.ino
#include "SD.h"
#include <SPI.h>
#include <SoftwareSerial.h>
#include <SerialCommand.h>
SerialCommand SCmd;
View codeartnetbutton.ino
#include <WiFi.h>
//#include <ESP8266WiFi.h>
#include "SD.h"
#include "SPI.h"
//#include "FS.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
View WiFiUdp.cpp
/*
Udp.cpp - UDP class for Raspberry Pi
Copyright (c) 2016 Hristo Gochkov All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
View WiFiUdp.h
/*
* Udp.cpp: Library to send/receive UDP packets.
*
* NOTE: UDP is fast, but has some important limitations (thanks to Warren Gray for mentioning these)
* 1) UDP does not guarantee the order in which assembled UDP packets are received. This
* might not happen often in practice, but in larger network topologies, a UDP
* packet can be received out of sequence.
* 2) UDP does not guard against lost packets - so packets *can* disappear without the sender being
* aware of it. Again, this may not be a concern in practice on small local networks.
* For more information, see http://www.cafeaulait.org/course/week12/35.html
View examplesecondecore.ino
#include "FastLED.h"
FASTLED_USING_NAMESPACE
#define FASTLED_SHOW_CORE 0
static TaskHandle_t FastLEDshowTaskHandle2 = 0;
static TaskHandle_t userTaskHandle = 0;
View output.txt
RUNNING
Total heap: 375040Free heap: 349104Total PSRAM: 4194220Free PSRAM: 4112620Used PSRAM: 81600halteffect: 0
activeflag: 1
allocationslot: 0
Strip no: 0
Scene name: scene0
Effect no: 0
Start pos: 0
Length: 24
Direction: 0
View testmidi.ino
byte message[30]
void loop() {
// int velocity = 20;//set velocity to 20
// MIDImessage(noteON, 50, velocity);//turn note on
// velocity += 5;//ad 5 to current velocity value
View animation.ino
#define LED_WIDTH 100
#define LED_HEIGHT 64
#define NUM_LEDS LED_WIDTH * LED_HEIGHT
//copy your code for your panel set up
#include "FastLED.h"
const float pi = 3.14159265359;
View test copy turn.ino
CRGB img[];
CRGB leds[];
//we want to display at x0,y0 and imaage of size width,height on a LED_WIDTH, LED_HEIGHT panel (turned 90)
//read the image from SD
myFile.read((uint8_t *)img,NUM_LEDS*sizeof(CRGB));
View test copy turn.ino
CRGB img[];
CRGB leds[];
//we want to display at x0,y0 and imaage of size width,height on a LED_WIDTH, LED_HEIGHT panel (turned 90)
//read the image from SD
myFile.read((uint8_t *)img,NUM_LEDS*sizeof(CRGB));
You can’t perform that action at this time.