Skip to content

Commit

Permalink
Bumped version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminJo committed Jun 6, 2022
1 parent 9f36bfc commit 533ec57
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 50 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is an extended version version of the [NeoPattern example by Adafruit](https://learn.adafruit.com/multi-tasking-the-arduino-part-3?view=all).
New Patterns are added, a [snake game running on a matrix](https://github.com/ArminJo/NeoPatterns/blob/master/examples/SnakeGame/SnakeGame.ino) is included and you can run [multiple patterns simultaneously on the same strip](https://github.com/ArminJo/NeoPatterns/blob/master/examples/TwoPatternsOnOneStrip/TwoPatternsOnOneStrip.ino).

### [Version 3.0.0](https://github.com/ArminJo/NeoPatterns/archive/master.zip) - work in progress
### [Version 3.0.1](https://github.com/ArminJo/NeoPatterns/archive/master.zip) - work in progress

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Installation instructions](https://www.ardu-badge.com/badge/NeoPatterns.svg?)](https://www.ardu-badge.com/NeoPatterns)
Expand Down Expand Up @@ -188,13 +188,18 @@ OpenLedRace at the Cologne public library MINTk
![OpenLedRace at the Cologne public library MINTköln-Festival](https://github.com/ArminJo/OpenledRace/blob/master/pictures/OpenLedRaceAtMintFestival.jpg)

# Revision History
### Version 3.0.1 - work in progress

### Version 3.0.0
- Enabled individual selection of patterns to save program memory.
- Renamed *NeoPatterns.cpp*, *MatrixNeoPatterns.cpp* and *MatrixSnake.cpp* to *NeoPatterns.hpp*, *MatrixNeoPatterns.hpp* and *MatrixSnake.hpp*.
- Renamed matrix pattern macros from `PATTERN_*` to `MATRIX_PATTERN_*`.
- Changed parameter for endless repeats in `initMultipleFallingStars()`.
- Improved usage of `random()`.
- Added function `fillRegion()`, `isActive()` and `setAdafruitBrightnessValue()`.
- Added support for brightness and brightness non zero mode.
- Fixed aDoUpdate bug for `FADE`.
- Fixed bugs in *Colors.h*.

### Version 2.4.0
- Added macros `ENABLE_PATTERN_<pattern_name>` to enable reducing size, if some patterns are not used.
Expand Down
1 change: 0 additions & 1 deletion examples/AllPatternsOnMultiDevices/ADCUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,3 @@ float getTemperature(void);
#endif // defined(ADATE)
#endif // defined(__AVR__)
#endif // _ADC_UTILS_H
#pragma once
1 change: 0 additions & 1 deletion examples/MatrixPatternsTest/AVRUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ bool isAddressInRAM(void *aAddressToCheck);
bool isAddressBelowHeap(void *aAddressToCheck);
#endif // defined(__AVR__)
#endif // _AVR_UTILS_H
#pragma once
1 change: 0 additions & 1 deletion examples/MatrixPatternsTest/EasyButtonAtInt01.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,3 @@ void __attribute__ ((weak)) handleINT1Interrupt();
*/

#endif // _EASY_BUTTON_AT_INT01_H
#pragma once
54 changes: 27 additions & 27 deletions examples/MatrixPatternsTest/digitalWriteFast.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
((((P) >= 10 && (P) <= 13) || ((P) >= 50 && (P) <= 53)) ? &PORTB : \
(((P) >= 30 && (P) <= 37) ? &PORTC : \
((((P) >= 18 && (P) <= 21) || (P) == 38) ? &PORTD : \
((((P) >= 0 && (P) <= 3) || (P) == 5) ? &PORTE : \
((((P) <= 3) || (P) == 5) ? &PORTE : \
(((P) >= 54 && (P) <= 61) ? &PORTF : \
((((P) >= 39 && (P) <= 41) || (P) == 4) ? &PORTG : \
((((P) >= 6 && (P) <= 9) || (P) == 16 || (P) == 17) ? &PORTH : \
Expand All @@ -174,7 +174,7 @@
((((P) >= 10 && (P) <= 13) || ((P) >= 50 && (P) <= 53)) ? &DDRB : \
(((P) >= 30 && (P) <= 37) ? &DDRC : \
((((P) >= 18 && (P) <= 21) || (P) == 38) ? &DDRD : \
((((P) >= 0 && (P) <= 3) || (P) == 5) ? &DDRE : \
((((P) <= 3) || (P) == 5) ? &DDRE : \
(((P) >= 54 && (P) <= 61) ? &DDRF : \
((((P) >= 39 && (P) <= 41) || (P) == 4) ? &DDRG : \
((((P) >= 6 && (P) <= 9) || (P) == 16 || (P) == 17) ? &DDRH : \
Expand All @@ -186,7 +186,7 @@
((((P) >= 10 && (P) <= 13) || ((P) >= 50 && (P) <= 53)) ? &PINB : \
(((P) >= 30 && (P) <= 37) ? &PINC : \
((((P) >= 18 && (P) <= 21) || (P) == 38) ? &PIND : \
((((P) >= 0 && (P) <= 3) || (P) == 5) ? &PINE : \
((((P) <= 3) || (P) == 5) ? &PINE : \
(((P) >= 54 && (P) <= 61) ? &PINF : \
((((P) >= 39 && (P) <= 41) || (P) == 4) ? &PING : \
((((P) >= 6 && (P) <= 9) || (P) == 16 || (P) == 17) ? &PINH : \
Expand Down Expand Up @@ -241,31 +241,31 @@

#if defined(__AVR_ATmega324PB__)
#define __digitalPinToPortReg(P) \
(((P) >= 0 && (P) <= 7) ? &PORTB : (((P) >= 8 && (P) <= 15) ? &PORTD : (((P) >= 16 && (P) <= 23) ? &PORTC : (((P) >= 24 && (P) <= 31) ? &PORTA : &PORTE))))
(((P) <= 7) ? &PORTB : (((P) >= 8 && (P) <= 15) ? &PORTD : (((P) >= 16 && (P) <= 23) ? &PORTC : (((P) >= 24 && (P) <= 31) ? &PORTA : &PORTE))))
#define __digitalPinToDDRReg(P) \
(((P) >= 0 && (P) <= 7) ? &DDRB : (((P) >= 8 && (P) <= 15) ? &DDRD : (((P) >= 16 && (P) <= 23) ? &DDRC : (((P) >= 24 && (P) <= 31) ? &DDRA : &DDRE))))
(((P) <= 7) ? &DDRB : (((P) >= 8 && (P) <= 15) ? &DDRD : (((P) >= 16 && (P) <= 23) ? &DDRC : (((P) >= 24 && (P) <= 31) ? &DDRA : &DDRE))))
#define __digitalPinToPINReg(P) \
(((P) >= 0 && (P) <= 7) ? &PINB : (((P) >= 8 && (P) <= 15) ? &PIND : (((P) >= 16 && (P) <= 23) ? &PINC : (((P) >= 24 && (P) <= 31) ? &PINA : &PINE))))
(((P) <= 7) ? &PINB : (((P) >= 8 && (P) <= 15) ? &PIND : (((P) >= 16 && (P) <= 23) ? &PINC : (((P) >= 24 && (P) <= 31) ? &PINA : &PINE))))
# if defined(SANGUINO_PINOUT)
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (((P) >= 16 && (P) <= 23) ? (7 - ((P) - 24)) : (P) - 32))))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (((P) >= 16 && (P) <= 23) ? (7 - ((P) - 24)) : (P) - 32))))
# else //MightyCore Pinout
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (((P) >= 16 && (P) <= 23) ? (P) - 24 : (P) - 32))))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (((P) >= 16 && (P) <= 23) ? (P) - 24 : (P) - 32))))
# endif
#else
#define __digitalPinToPortReg(P) \
(((P) >= 0 && (P) <= 7) ? &PORTB : (((P) >= 8 && (P) <= 15) ? &PORTD : (((P) >= 16 && (P) <= 23) ? &PORTC : &PORTA)))
(((P) <= 7) ? &PORTB : (((P) >= 8 && (P) <= 15) ? &PORTD : (((P) >= 16 && (P) <= 23) ? &PORTC : &PORTA)))
#define __digitalPinToDDRReg(P) \
(((P) >= 0 && (P) <= 7) ? &DDRB : (((P) >= 8 && (P) <= 15) ? &DDRD : (((P) >= 16 && (P) <= 23) ? &DDRC : &DDRA)))
(((P) <= 7) ? &DDRB : (((P) >= 8 && (P) <= 15) ? &DDRD : (((P) >= 16 && (P) <= 23) ? &DDRC : &DDRA)))
#define __digitalPinToPINReg(P) \
(((P) >= 0 && (P) <= 7) ? &PINB : (((P) >= 8 && (P) <= 15) ? &PIND : (((P) >= 16 && (P) <= 23) ? &PINC : &PINA)))
(((P) <= 7) ? &PINB : (((P) >= 8 && (P) <= 15) ? &PIND : (((P) >= 16 && (P) <= 23) ? &PINC : &PINA)))
# if defined(SANGUINO_PINOUT)
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (7 - ((P) - 24)))))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (7 - ((P) - 24)))))
# else //MightyCore Pinout
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (P) - 24)))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (P) - 24)))
# endif
#endif

Expand All @@ -287,11 +287,11 @@
#define SPI_HW_SCK_PIN (15) //PB1

#define __digitalPinToPortReg(P) \
((((P) >= 0 && (P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &PORTD : (((P) == 5 || (P) == 13) ? &PORTC : (((P) >= 18 && (P) <= 23)) ? &PORTF : (((P) == 7) ? &PORTE : &PORTB)))
((((P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &PORTD : (((P) == 5 || (P) == 13) ? &PORTC : (((P) >= 18 && (P) <= 23)) ? &PORTF : (((P) == 7) ? &PORTE : &PORTB)))
#define __digitalPinToDDRReg(P) \
((((P) >= 0 && (P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &DDRD : (((P) == 5 || (P) == 13) ? &DDRC : (((P) >= 18 && (P) <= 23)) ? &DDRF : (((P) == 7) ? &DDRE : &DDRB)))
((((P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &DDRD : (((P) == 5 || (P) == 13) ? &DDRC : (((P) >= 18 && (P) <= 23)) ? &DDRF : (((P) == 7) ? &DDRE : &DDRB)))
#define __digitalPinToPINReg(P) \
((((P) >= 0 && (P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &PIND : (((P) == 5 || (P) == 13) ? &PINC : (((P) >= 18 && (P) <= 23)) ? &PINF : (((P) == 7) ? &PINE : &PINB)))
((((P) <= 4) || (P) == 6 || (P) == 12 || (P) == 24 || (P) == 25 || (P) == 29) ? &PIND : (((P) == 5 || (P) == 13) ? &PINC : (((P) >= 18 && (P) <= 23)) ? &PINF : (((P) == 7) ? &PINE : &PINB)))
#define __digitalPinToBit(P) \
(((P) >= 8 && (P) <= 11) ? (P) - 4 : (((P) >= 18 && (P) <= 21) ? 25 - (P) : (((P) == 0) ? 2 : (((P) == 1) ? 3 : (((P) == 2) ? 1 : (((P) == 3) ? 0 : (((P) == 4) ? 4 : (((P) == 6) ? 7 : (((P) == 13) ? 7 : (((P) == 14) ? 3 : (((P) == 15) ? 1 : (((P) == 16) ? 2 : (((P) == 17) ? 0 : (((P) == 22) ? 1 : (((P) == 23) ? 0 : (((P) == 24) ? 4 : (((P) == 25) ? 7 : (((P) == 26) ? 4 : (((P) == 27) ? 5 : 6 )))))))))))))))))))

Expand Down Expand Up @@ -325,22 +325,22 @@

#if defined(__AVR_ATmega48PB__) || defined(__AVR_ATmega88PB__) || defined(__AVR_ATmega168PB__) || defined(__AVR_ATmega328PB__)
#define __digitalPinToPortReg(P) \
(((P) >= 0 && (P) <= 7) ? &PORTD : (((P) >= 8 && (P) <= 13) ? &PORTB : (((P) >= 14 && (P) <= 19) ? &PORTC : &PORTE)))
(((P) <= 7) ? &PORTD : (((P) >= 8 && (P) <= 13) ? &PORTB : (((P) >= 14 && (P) <= 19) ? &PORTC : &PORTE)))
#define __digitalPinToDDRReg(P) \
(((P) >= 0 && (P) <= 7) ? &DDRD : (((P) >= 8 && (P) <= 13) ? &DDRB : (((P) >= 14 && (P) <= 19) ? &DDRC : &DDRE)))
(((P) <= 7) ? &DDRD : (((P) >= 8 && (P) <= 13) ? &DDRB : (((P) >= 14 && (P) <= 19) ? &DDRC : &DDRE)))
#define __digitalPinToPINReg(P) \
(((P) >= 0 && (P) <= 7) ? &PIND : (((P) >= 8 && (P) <= 13) ? &PINB : (((P) >= 14 && (P) <= 19) ? &PINC : &PINE)))
(((P) <= 7) ? &PIND : (((P) >= 8 && (P) <= 13) ? &PINB : (((P) >= 14 && (P) <= 19) ? &PINC : &PINE)))
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 13) ? (P) - 8 : (((P) >= 14 && (P) <= 19) ? (P) - 14 : (((P) >= 20 && (P) <= 21) ? (P) - 18 : (P) - 22))))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 13) ? (P) - 8 : (((P) >= 14 && (P) <= 19) ? (P) - 14 : (((P) >= 20 && (P) <= 21) ? (P) - 18 : (P) - 22))))
#else
#define __digitalPinToPortReg(P) \
(((P) >= 0 && (P) <= 7) ? &PORTD : (((P) >= 8 && (P) <= 13) ? &PORTB : &PORTC))
(((P) <= 7) ? &PORTD : (((P) >= 8 && (P) <= 13) ? &PORTB : &PORTC))
#define __digitalPinToDDRReg(P) \
(((P) >= 0 && (P) <= 7) ? &DDRD : (((P) >= 8 && (P) <= 13) ? &DDRB : &DDRC))
(((P) <= 7) ? &DDRD : (((P) >= 8 && (P) <= 13) ? &DDRB : &DDRC))
#define __digitalPinToPINReg(P) \
(((P) >= 0 && (P) <= 7) ? &PIND : (((P) >= 8 && (P) <= 13) ? &PINB : &PINC))
(((P) <= 7) ? &PIND : (((P) >= 8 && (P) <= 13) ? &PINB : &PINC))
#define __digitalPinToBit(P) \
(((P) >= 0 && (P) <= 7) ? (P) : (((P) >= 8 && (P) <= 13) ? (P) - 8 : (P) - 14))
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 13) ? (P) - 8 : (P) - 14))
#endif

// --- Arduino Uno WiFi Rev 2, Nano Every ---
Expand Down Expand Up @@ -462,7 +462,7 @@ if (__builtin_constant_p(P) && __builtin_constant_p(V)) { \
#else
#define pinModeFast pinMode
#endif
#endif
#endif // !defined(pinModeFast)

#if !defined(digitalReadFast)
#if (defined(__AVR__) || defined(ARDUINO_ARCH_AVR))
Expand All @@ -474,7 +474,7 @@ if (__builtin_constant_p(P) && __builtin_constant_p(V)) { \
#else
#define digitalReadFast digitalRead
#endif
#endif
#endif // !defined(digitalReadFast)

#if !defined(digitalToggleFast)
#if (defined(__AVR__) || defined(ARDUINO_ARCH_AVR))
Expand All @@ -487,6 +487,6 @@ if (__builtin_constant_p(P)) { \
#else
#define digitalToggleFast(P) digitalWrite(P, ! digitalRead(P))
#endif
#endif
#endif // !defined(digitalToggleFast)

#endif //__digitalWriteFast_h_
1 change: 0 additions & 1 deletion examples/MatrixSnow/AVRUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ bool isAddressInRAM(void *aAddressToCheck);
bool isAddressBelowHeap(void *aAddressToCheck);
#endif // defined(__AVR__)
#endif // _AVR_UTILS_H
#pragma once
1 change: 0 additions & 1 deletion examples/OpenLedRace/AVRUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ bool isAddressInRAM(void *aAddressToCheck);
bool isAddressBelowHeap(void *aAddressToCheck);
#endif // defined(__AVR__)
#endif // _AVR_UTILS_H
#pragma once
1 change: 0 additions & 1 deletion examples/OpenLedRace/MPU6050Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,3 @@ typedef enum {
#define MPU6050_DMP_MEMORY_CHUNK_SIZE 16

#endif // _MPU6050_DEFINES_H
#pragma once
1 change: 0 additions & 1 deletion examples/OpenLedRace/MPU6050IMUData.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ class MPU6050IMUData {
bool initWire();

#endif // _MPU6050_IMU_DATA_H
#pragma once
2 changes: 0 additions & 2 deletions examples/OpenLedRace/SoftI2CMasterConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,3 @@
#define I2C_FASTMODE 1

#endif // _SOFT_I2C_MASTER_CONFIG_H
#pragma once

1 change: 0 additions & 1 deletion examples/TwoPatternsOnOneStrip/EasyButtonAtInt01.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,3 @@ void __attribute__ ((weak)) handleINT1Interrupt();
*/

#endif // _EASY_BUTTON_AT_INT01_H
#pragma once
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version=3.0.0
author=Armin Joachimsmeyer
maintainer=Armin Joachimsmeyer <armin.arduino@gmail.com>
sentence=Patterns for NeoPixel strips and matrixes including the patterns of the NeoPattern example by Adafruit.<br/>
paragraph=Patterns from Adafruit are: <ul><li>SCANNER</li><li>STRIPES</li><li>DELAY</li><li>PROCESS_SELECTIVE</li><li>FADE_SELECTIVE</li></ul>The original SCANNER pattern is extended and includes the CYLON as well as the ROCKET or FALLING_STAR pattern. The more versatile STRIPES pattern replaces the old THEATER_CHASE one.<br/><br/>NeoPixel-Matrix pattern are:<ul><li>MOVING_PICTURE</li><li>MOVE</li><li>TICKER</li><li>FIRE</li><li>SNAKE</li></ul>The SNAKE pattern is an implementation of the Snake game and can be played with 2 or 4 buttons attached to the Arduino.<br/>The SnakeAutorun example will start <b>your own code to solve the Snake game</b> provided in the function getNextSnakeDirection().<br/><br/>YouTube demos are available under <a href="https://github.com/ArminJo/NeoPatterns">https://github.com/ArminJo/NeoPatterns</a>.<br/><br/>Includes an <b>OpenLedRace</b> example for 2 players.<br/><br/><b>New: </b>renamed 3 file from *.cpp to *.hpp. Added function setBrightnessValue(). Changed parameter for endless repeats in initMultipleFallingStars(). Fixed bug in Fade.<br/><a href="https://github.com/ArminJo/NeoPatterns#revision-history">Revision History</a><br/>
paragraph=Patterns from Adafruit are: <ul><li>SCANNER</li><li>STRIPES</li><li>DELAY</li><li>PROCESS_SELECTIVE</li><li>FADE_SELECTIVE</li></ul>The original SCANNER pattern is extended and includes the CYLON as well as the ROCKET or FALLING_STAR pattern. The more versatile STRIPES pattern replaces the old THEATER_CHASE one.<br/><br/>NeoPixel-Matrix pattern are:<ul><li>MOVING_PICTURE</li><li>MOVE</li><li>TICKER</li><li>FIRE</li><li>SNAKE</li></ul>The SNAKE pattern is an implementation of the Snake game and can be played with 2 or 4 buttons attached to the Arduino.<br/>The SnakeAutorun example will start <b>your own code to solve the Snake game</b> provided in the function getNextSnakeDirection().<br/><br/>YouTube demos are available under <a href="https://github.com/ArminJo/NeoPatterns">https://github.com/ArminJo/NeoPatterns</a>.<br/><br/>Includes an <b>OpenLedRace</b> example for 2 players.<br/><br/><b>New: </b>Renamed 3 file from *.cpp to *.hpp. Added function setBrightnessValue(). Changed parameter for endless repeats in initMultipleFallingStars(). Fixed bug in Fade.<br/><a href="https://github.com/ArminJo/NeoPatterns#revision-history">Revision History</a><br/>
category=Display
url=https://github.com/ArminJo/NeoPatterns
architectures=avr,megaAVR,esp8266,esp32,STM32
Expand Down
1 change: 0 additions & 1 deletion src/Colors.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,3 @@ typedef uint32_t color32_t;
// end deprecated

#endif // _COLORS_H
#pragma once
1 change: 0 additions & 1 deletion src/DebugLevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@
#endif

#endif // _DEBUGLEVEL_H
#pragma once
1 change: 0 additions & 1 deletion src/LongUnion.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#if !defined(_WORD_UNION_H) || !defined(_LONG_UNION_H)

#include <Arduino.h>
#include <stdint.h>

#ifndef _WORD_UNION_H
Expand Down
1 change: 0 additions & 1 deletion src/MatrixNeoPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,3 @@ void MatrixPatternsDemo(NeoPatterns *aLedsPtr);
void myLoadTest(MatrixNeoPatterns *aLedsPtr);

#endif // _MATRIX_NEOPATTERNS_H
#pragma once
3 changes: 0 additions & 3 deletions src/MatrixNeoPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,3 @@ uint16_t ZigzagTypeBottomRightMapping(uint8_t aColumnX, uint8_t aRowY, uint8_t a
uint16_t ZigzagTypeBottomLeftMapping(uint8_t aColumnX, uint8_t aRowY, uint8_t aColumnsTotal, uint8_t aRowsTotal);

#endif /* SRC_LIB_NEOPATTERNS_MATRIXNEOPIXEL_H_ */

#pragma once

1 change: 0 additions & 1 deletion src/MatrixSnake.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,3 @@ void SnakeAutorunCompleteHandler(NeoPatterns *aLedsPtr);
#endif

#endif // _MATRIX_SNAKE_H
#pragma once
2 changes: 1 addition & 1 deletion src/NeoPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ void __attribute__((weak)) UserPattern2(NeoPatterns *aNeoPatterns, color32_t aCo
* - Added function fillRegion(), isActive() and setBrightnessValue().
* - Added support for brightness and brightness non zero mode.
* - Fixed aDoUpdate bug for FADE.
* - Fixed bugs in Colors.h.
*
* Version 2.3.1 - 02/2021
* - Changed type of TotalStepCounter from uint16_t to int16_t.
Expand Down Expand Up @@ -420,4 +421,3 @@ void __attribute__((weak)) UserPattern2(NeoPatterns *aNeoPatterns, color32_t aCo
*/

#endif // _NEOPATTERNS_H
#pragma once
1 change: 0 additions & 1 deletion src/NeoPixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,3 @@ class NeoPixel: public Adafruit_NeoPixel {
extern const uint8_t GammaTable32[32] PROGMEM;

#endif /* _NEOPATTERNS_NEOPIXEL_H */
#pragma once
1 change: 0 additions & 1 deletion src/fonts.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@
extern const uint8_t font_PGM[];

#endif // _FONTS_H
#pragma once

0 comments on commit 533ec57

Please sign in to comment.