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 FASTLED_SHOW_CORE | |
static TaskHandle_t FastLEDshowTaskHandle = 0; | |
static TaskHandle_t userTaskHandle = 0; | |
void FastLEDshowESP32() | |
{ | |
if (userTaskHandle == 0) { | |
const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 200 ); | |
// -- Store the handle of the current task, so that the show task can |
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 FASTLED_SHOW_CORE 0 | |
static TaskHandle_t FastLEDshowTaskHandle2 = 0; | |
static TaskHandle_t userTaskHandle = 0; | |
void FastLEDshowESP322() | |
{ | |
if (userTaskHandle == 0) { | |
const TickType_t xMaxBlockTime = pdMS_TO_TICKS( 200 ); | |
// -- Store the handle of the current task, so that the show task can |
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 is may pacman | |
int pacmab[256]={ | |
9,9,9,9,9,9,9,9, | |
9,1,1,1,9,9,9,9, | |
1,1,1,1,1,9,9,9, | |
1,1,1,1,1,9,9,9, | |
1,1,1,1,1,9,9,9, | |
9,1,1,1,9,9,9,9, | |
9,9,9,9,9,9,9,9, |
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
void transpose24x1_noinline(unsigned char *A, uint32_t *B) { | |
uint32_t x, y, x1,y1,t,x2,y2; | |
// Load the array and pack it into x and y. | |
/* y = (*(unsigned char*)(A) & 0xffff ) | ((*(unsigned char*)(A+4) & 0xffffL )<<16) ; | |
x = (*(unsigned char*)(A+8)& 0xffff ) | ((*(unsigned char*)(A+12) & 0xffffL )<<16) ; | |
y1 = (*(unsigned char*)(A+2)& 0xffff ) | ((*(unsigned char*)(A+6) & 0xffffL )<<16); | |
x1 = (*(unsigned char*)(A+10)& 0xffff )| ((*(unsigned char*)(A+14) & 0xffffL )<<16);*/ | |
//printf("%d\n",*(unsigned int*)(A+4)); |
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
#ifndef __INC_CLOCKLESS_BLOCK_ESP8266_H | |
#define __INC_CLOCKLESS_BLOCK_ESP8266_H | |
#define FASTLED_HAS_BLOCKLESS 1 | |
#define PORT_MASK4 (((1<<USED_LANES_FIRST)-1) & 0x0000FFFFL) //on dit que l'ion va en faire 10 | |
#define FIX_BITS(bits) ( ((bits & 0xE0L) << 17) | ((bits & 0x1FL)<<2) ) | |
#define FIX_BITS2(bits) ( ((bits & 0xFF00L)<<4) | ((bits & 0xE0L) << 15) | ((bits & 0x1EL)<<1) | (bits & 0x1L) ) | |
#define PORT_MASK3 (((1<<USED_LANES_SECOND )-1) & 0x0000FFFFL) | |
#define PORT_MASK2 FIX_BITS(PORT_MASK3) |
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
#ifndef __INC_CLOCKLESS_BLOCK_ESP8266_H | |
#define __INC_CLOCKLESS_BLOCK_ESP8266_H | |
#define FASTLED_HAS_BLOCKLESS 1 | |
#define PORT_MASK4 (((1<<USED_LANES_FIRST)-1) & 0x0000FFFFL) //on dit que l'ion va en faire 10 | |
#define FIX_BITS(bits) ( ((bits & 0xE0L) << 17) | ((bits & 0x1FL)<<2) ) | |
#define FIX_BITS2(bits) ( ((bits & 0xFF00L)<<4) | ((bits & 0xE0L) << 15) | ((bits & 0x1EL)<<1) | (bits & 0x1L) ) | |
#define PORT_MASK3 (((1<<USED_LANES_SECOND )-1) & 0x0000FFFFL) | |
#define PORT_MASK2 FIX_BITS(PORT_MASK3) |
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 <WiFi.h> | |
//#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <Artnet.h> | |
/* | |
* Connect the SD card to the following pins: | |
* | |
* SD Card | ESP32 |
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 <WiFi.h> | |
//#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <Artnet.h> | |
/* | |
* Connect the SD card to the following pins: | |
* | |
* SD Card | ESP32 |
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 <WiFi.h> | |
//#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <Artnet.h> | |
//#define FASTLED_ALLOW_INTERRUPTS 0 | |
//#define INTERRUPT_THRESHOLD 1 | |
#include "FastLED.h" | |
FASTLED_USING_NAMESPACE |
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
/* | |
* Connect the SD card to the following pins: | |
* | |
* SD Card | ESP32 | |
* D2 - | |
* D3 SS | |
* CMD MOSI | |
* VSS GND | |
* VDD 3.3V | |
* CLK SCK |
OlderNewer