Simplified includes from last PR.

Tweaked readme text.
Added INSTALLATION.md advising users to pull latest release instead of main branch.
This commit is contained in:
KurtMF
2024-11-28 12:12:20 -05:00
parent 3acc9c1211
commit 69fdb35803
5 changed files with 13 additions and 31 deletions
+1
View File
@@ -0,0 +1 @@
The main branch is not always in a tested state. For installation, please download the [latest release](https://github.com/KurtMF/ObjectFLED/releases). Releases contain an ObjectFLED.zip file which is used to install in Arduino IDE: Sketch -> Include Library -> Add ZIP Library.
+1 -16
View File
@@ -38,23 +38,8 @@
#endif
#ifndef ObjectFLED_h
#define ObjectFLED_h
// #include <Arduino.h>
#include <WProgram.h>
#include "DMAChannel.h"
#include "core_pins.h"
// for DMAMEM
#include "pgmspace.h"
// for NUM_DIGITAL_PINS and NUM_DIGITAL_PINS
#include "pins_arduino.h"
#if !defined(NUM_DIGITAL_PINS) && !defined(USING_ARDUINO_FOR_TEENSY)
#define USING_ARDUINO_FOR_TEENSY 0
#else
#define USING_ARDUINO_FOR_TEENSY 1
#endif
// Ordinary RGB data is converted to GPIO bitmasks on-the-fly using
// a transmit buffer sized for 2 DMA transfers. The larger this setting,
-4
View File
@@ -57,10 +57,6 @@ GOIO9List = { 2, 3, 4, 5, 29, 33, 48, 49, 50, 51, 52, 53, 54 } //6 top, 7 botto
#ifndef __IMXRT1062__
#error Only Teensy 4.x supported.
#else
#include <string.h>
#include "ObjectFLED.h"
#ifndef MIN
+10 -10
View File
@@ -123,16 +123,16 @@ object. Ex.-
Called once in setup for the display object
// Default timing 800KHz clock, 75uS latch delay
void ObjectFLED::begin(void);
begin(void);
// Overclock default timing by the given factor
void ObjectFLED::begin(float OCF);
begin(float OCF);
// Overclock default timing and overrde default latch delay
void ObjectFLED::begin(float OCF, uint16_t latchDelay);
begin(float OCF, uint16_t latchDelay);
// Fully specify output waveform timing. NOTE: Given period, t0h, t1h are divided by given OCF.
void ObjectFLED::begin(float OCF, uint16_t period, uint16_t t0h, uint16_t t1h, uint16_t latchDelay);
begin(float OCF, uint16_t period, uint16_t t0h, uint16_t t1h, uint16_t latchDelay);
- OCF = Overclocking factor multiples the clock rate (by dividing the pulse width values below)
- period = nS time for duration of a full LED data pulse (from LED datasheet) NOTE: For 800KHz clock,
@@ -168,9 +168,9 @@ See MAIN BENEFITS above for details.
Brightness values 0-255. Brightness is applied by show() to frame buffer, not your
drawing buffer.
* void setBrightness(uint8_t)
* setBrightness(uint8_t);
* uint8_t getBrightness() { return brightness; }
* getBrightness() { return uint8_t brightness; }
### setBalance(), getBalance() FUNCTIONS
@@ -178,9 +178,9 @@ drawing buffer.
Color Balance is 3-byte number in RGB order. Each byte is a brightness value for that color.
Like brightness, this is applied by show() to frame buffer, not to your drawing buffer.
* void setBalance(uint32_t);
* setBalance(uint32_t);
* uint32_t getBalance() { return colorBalance; }
* getBalance() { return uint32_t colorBalance; }
## ACCESSORY FUNCTIONS
@@ -188,7 +188,7 @@ Like brightness, this is applied by show() to frame buffer, not to your drawing
These are not part of display objects, call them without object specifier. Unlike brightness and
balance, these functions operate on your drawing buffer.
### void fadeToColorBy(void* leds, uint16_t count, uint32_t color, uint8_t fadeAmt);
### fadeToColorBy(void* leds, uint16_t count, uint32_t color, uint8_t fadeAmt);
Fades drawing array towards the background color by amount. It is used just like FastLED's
fadeToBlackBy().
@@ -197,7 +197,7 @@ fadeToBlackBy().
fadeToColorBy( myCube, 16*16*16, 0xFF8000, 20 ); //fades towards orange by 20/255ths
### void drawSquare(void* leds, uint16_t planeY, uint16_t planeX, int yCorner, int xCorner, uint size, uint32_t color);
### drawSquare(void* leds, uint16_t planeY, uint16_t planeX, int yCorner, int xCorner, uint size, uint32_t color);
Safely draws box in given RGB color on LED plane. cornerY and cornerX specify the lower left
corner of the box. It is safe to specify -cornerY, -cornerX, and safe to draw a box which only
+1 -1
View File
@@ -2,7 +2,7 @@ name=ObjectFLED
version=1.0.0
author=Kurt Funderburg
maintainer=Kurt Funderburg
sentence=Independently configure and display to various LED devices in one sketch with DMA-driven LED output.
sentence=Independently configure and display to various LED devices in one sketch with parallel DMA-driven LED output.
paragraph=Uses DMA transfer on all 40 or 55 pins of Teensy 4.0 or 4.1 to drive digital LEDs for display of FastLED arrays of CRGB, or other drawing buffer in RGB 3-byte format. The show() function is non-blocking, returning control to the graphics drawing code in just 6% of the time it takes to complete buffer transmission to an LED string, plane, or cube (tested with WS2812B, 1.6 overclock factor, 256 LED per pin x 16 pins = 4096 LEDs total @204 fps).
category=Display
url=https://github.com/KurtMF/ObjectFLED.git