Skip to content

Commit

Permalink
libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminJo committed Jun 8, 2020
1 parent 000afab commit c32aaac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 30 deletions.
17 changes: 0 additions & 17 deletions examples/OpenLedRace/PlayRtttl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@
# endif
#endif
#ifdef DEBUG
# if defined(USE_NON_STANDARD_SERIAL_FOR_DEBUG)
Print * sPointerToSerial = NULL; // needs 272 bytes Flash
void setSerialForPlayRtttlDebug(Print * aPointerToSerial) {
sPointerToSerial = aPointerToSerial;
}
# else
Print * const sPointerToSerial = &Serial; // needs 0 bytes Flash because it is constant
# endif
#endif //DEBUG

struct playRtttlState sPlayRtttlState;
Expand Down Expand Up @@ -94,11 +87,6 @@ void startPlayRtttl(uint8_t aTonePin, const char * aRTTTLArrayPtr, void (*aOnCom
* Skip name and :
*/
#ifdef DEBUG
# if defined(USE_NON_STANDARD_SERIAL_FOR_DEBUG)
if(sPointerToSerial == NULL){
return;
}
# endif
sPointerToSerial->print(F("Title="));
#endif
while (*aRTTTLArrayPtr != ':') {
Expand Down Expand Up @@ -593,11 +581,6 @@ void startPlayRtttlPGM(uint8_t aTonePin, const char * aRTTTLArrayPtrPGM, void (*
* Skip name and :
*/
#ifdef DEBUG
# if defined(USE_NON_STANDARD_SERIAL_FOR_DEBUG)
if(sPointerToSerial == NULL){
return;
}
# endif
sPointerToSerial->print(F("Title="));
#endif
char tPGMChar = pgm_read_byte(aRTTTLArrayPtrPGM);
Expand Down
16 changes: 4 additions & 12 deletions examples/OpenLedRace/PlayRtttl.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@
#endif
#include "pitches.h"

#define VERSION_PLAY_RTTTL "1.3.2"
#define VERSION_PLAY_RTTTL "1.4.0"
#define VERSION_PLAY_RTTTL_MAJOR 1
#define VERSION_PLAY_RTTTL_MINOR 3
#define VERSION_PLAY_RTTTL_MINOR 4

/*
* Version 1.3.2 - 1/2020
* - supporting direct tone output at pin 11 for ATmega328. Can be used with interrupt blocking libraries for NeoPixel etc.
*
* Version 1.3.1 - 1/2020
* - defining USE_NON_STANDARD_SERIAL_FOR_DEBUG needs serial class for debugging purposes to be set by setSerialForPlayRtttlDebug().
* Version 1.4.0 - 1/2020
* - Supporting direct tone output at pin 11 for ATmega328. Can be used with interrupt blocking libraries for NeoPixel etc.
* - Use Print * instead of Stream *.
* - Improved non-AVR compatibility.
* - New Christmas songs example.
Expand Down Expand Up @@ -148,11 +145,6 @@ bool updatePlayRtttl(void);

void stopPlayRtttl(void);

#ifdef USE_NON_STANDARD_SERIAL_FOR_DEBUG
void setSerialForPlayRtttlDebug(Print * aPointerToSerial); // for DEBUG
extern Print * sPointerToSerial;
#endif

struct playRtttlState {
long MillisOfNextAction;
const char * NextTonePointer;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name=NeoPatterns
version=2.2.0
author=Armin Joachimsmeyer
maintainer=Armin Joachimsmeyer <armin.joachimsmeyer@gmail.com>
sentence=Patterns for NeoPixel strips and matrixes including the patterns of the NeoPattern Example by Adafruit.<br/>
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><br/>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 your own code provided in the function getNextSnakeDirection() to solve the Snake game.<br/>Includes an <b>OpenLedRace</b> example for 2 players.<br/><br/>The extras folder contains sample breadboard pictures as well as a Python script, which enables Snake to be played by PC keyboard or game controller.<br/>YouTube demos are available under <a href="https://github.com/ArminJo/NeoPatterns">https://github.com/ArminJo/NeoPatterns</a>.<br/><br/>To test your own pattern, just add your pattern code to the functions UserPattern\[1,2]() and UserPattern\[1,2]Update() in AllPatternOnOneStrip.cpp to see the patterns. Enable TEST_USER_PATTERNS on line 41 to activate them.<br/>
category=Display
url=https://github.com/ArminJo/NeoPatterns
Expand Down

0 comments on commit c32aaac

Please sign in to comment.