Skip to content

Commit a4d324e

Browse files
committed
Bumped version to 1.3.2
1 parent d3b555a commit a4d324e

File tree

11 files changed

+106
-20
lines changed

11 files changed

+106
-20
lines changed

Diff for: .github/workflows/LibraryBuild.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- SparkFun:avr:promicro
3535
- esp32:esp32:featheresp32:FlashFreq=80
3636
- STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8
37+
- STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_L432KC
3738
- stm32duino:STM32F1:genericSTM32F103C
3839

3940
include:
@@ -46,10 +47,13 @@ jobs:
4647
- arduino-boards-fqbn: esp32:esp32:featheresp32:FlashFreq=80
4748
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
4849

49-
- arduino-boards-fqbn: STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 # STM version
50+
- arduino-boards-fqbn: STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 # STM core
5051
platform-url: https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/main/package_stmicroelectronics_index.json
5152

52-
- arduino-boards-fqbn: stm32duino:STM32F1:genericSTM32F103C # Roger Clark version
53+
- arduino-boards-fqbn: STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_L432KC
54+
platform-url: https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/main/package_stmicroelectronics_index.json
55+
56+
- arduino-boards-fqbn: stm32duino:STM32F1:genericSTM32F103C # Roger Clark core
5357
platform-url: http://dan.drown.org/stm32duino/package_STM32duino_index.json
5458

5559
# Do not cancel all jobs / architectures if one job fails

Diff for: LICENSE.txt

+55-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

@@ -618,4 +618,57 @@ an absolute waiver of all civil liability in connection with the
618618
Program, unless a warranty or assumption of liability accompanies a
619619
copy of the Program in return for a fee.
620620

621-
END OF TERMS AND CONDITIONS
621+
END OF TERMS AND CONDITIONS
622+
623+
How to Apply These Terms to Your New Programs
624+
625+
If you develop a new program, and you want it to be of the greatest
626+
possible use to the public, the best way to achieve this is to make it
627+
free software which everyone can redistribute and change under these terms.
628+
629+
To do so, attach the following notices to the program. It is safest
630+
to attach them to the start of each source file to most effectively
631+
state the exclusion of warranty; and each file should have at least
632+
the "copyright" line and a pointer to where the full notice is found.
633+
634+
<one line to give the program's name and a brief idea of what it does.>
635+
Copyright (C) <year> <name of author>
636+
637+
This program is free software: you can redistribute it and/or modify
638+
it under the terms of the GNU General Public License as published by
639+
the Free Software Foundation, either version 3 of the License, or
640+
(at your option) any later version.
641+
642+
This program is distributed in the hope that it will be useful,
643+
but WITHOUT ANY WARRANTY; without even the implied warranty of
644+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645+
GNU General Public License for more details.
646+
647+
You should have received a copy of the GNU General Public License
648+
along with this program. If not, see <https://www.gnu.org/licenses/>.
649+
650+
Also add information on how to contact you by electronic and paper mail.
651+
652+
If the program does terminal interaction, make it output a short
653+
notice like this when it starts in an interactive mode:
654+
655+
<program> Copyright (C) <year> <name of author>
656+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657+
This is free software, and you are welcome to redistribute it
658+
under certain conditions; type `show c' for details.
659+
660+
The hypothetical commands `show w' and `show c' should show the appropriate
661+
parts of the General Public License. Of course, your program's commands
662+
might be different; for a GUI interface, you would use an "about box".
663+
664+
You should also get your employer (if you work as a programmer) or school,
665+
if any, to sign a "copyright disclaimer" for the program, if necessary.
666+
For more information on this, and how to apply and follow the GNU GPL, see
667+
<https://www.gnu.org/licenses/>.
668+
669+
The GNU General Public License does not permit incorporating your program
670+
into proprietary programs. If your program is a subroutine library, you
671+
may consider it more useful to permit linking proprietary applications with
672+
the library. If this is what you want to do, use the GNU Lesser General
673+
Public License instead of this License. But first, please read
674+
<https://www.gnu.org/licenses/why-not-lgpl.html>.

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ If you are using [Sloeber](https://eclipse.baeyens.it) as your IDE, you can easi
152152
![Fritzing schematic for voltmeter example](https://github.com/ArminJo/Talkie/blob/master/extras/TalkieVoltmeter_Steckplatine.png)
153153

154154
# Revision History
155+
### Version 1.3.2
156+
- Fixed ESP32 timer bug.
157+
155158
### Version 1.3.1
156159
- Updated _1_Voltmeter example and renamed example names.
157160
- Improved SAMD support.

Diff for: examples/USDistanceToVoice/HCSR04.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*
2222
* This program is distributed in the hope that it will be useful,
2323
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25-
* GNU General Public License for more details.
24+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25+
* See the GNU General Public License for more details.
2626
*
2727
* You should have received a copy of the GNU General Public License
2828
* along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.

Diff for: examples/USDistanceToVoice/HCSR04.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
*
4646
* This program is distributed in the hope that it will be useful,
4747
* but WITHOUT ANY WARRANTY; without even the implied warranty of
48-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49-
* GNU General Public License for more details.
48+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
49+
* See the GNU General Public License for more details.
5050
*
5151
* You should have received a copy of the GNU General Public License
5252
* along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.

Diff for: examples/VoltmeterSayQ/ADCUtils.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*
1414
* This program is distributed in the hope that it will be useful,
1515
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU General Public License for more details.
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17+
* See the GNU General Public License for more details.
1818
*
1919
* You should have received a copy of the GNU General Public License
2020
* along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
@@ -24,9 +24,10 @@
2424
#ifndef _ADC_UTILS_H
2525
#define _ADC_UTILS_H
2626

27+
#include <Arduino.h>
28+
2729
#if defined(__AVR__) && defined(ADCSRA) && defined(ADATE) && (!defined(__AVR_ATmega4809__))
2830
#define ADC_UTILS_ARE_AVAILABLE
29-
#include <Arduino.h>
3031

3132
// PRESCALE4 => 13 * 4 = 52 microseconds per ADC conversion at 1 MHz Clock => 19,2 kHz
3233
#define ADC_PRESCALE2 1 // 26 microseconds per ADC conversion at 1 MHz

Diff for: examples/VoltmeterSayQ/ADCUtils.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
* This program is distributed in the hope that it will be useful,
1717
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU General Public License for more details.
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19+
* See the GNU General Public License for more details.
2020
*
2121
* You should have received a copy of the GNU General Public License
2222
* along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
@@ -599,10 +599,10 @@ float getTemperature(void) {
599599
#endif
600600
}
601601

602-
#elif defined(ARDUINO_ARCH_APOLLO3) // defined(__AVR__) && defined(ADATE)
602+
#elif defined(ARDUINO_ARCH_APOLLO3) // defined(ADC_UTILS_ARE_AVAILABLE)
603603
void ADCUtilsDummyToAvoidBFDAssertions(){
604604
;
605605
}
606-
#endif // defined(__AVR__) && defined(ADATE)
606+
#endif // defined(ADC_UTILS_ARE_AVAILABLE)
607607

608608
#endif // _ADC_UTILS_HPP

Diff for: library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "git",
77
"url": "https://github.com/ArminJo/Talkie"
88
},
9-
"version": "1.3.1",
9+
"version": "1.3.2",
1010
"exclude": "pictures",
1111
"authors": {
1212
"name": "Armin Joachimsmeyer",

Diff for: library.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=Talkie
2-
version=1.3.1
2+
version=1.3.2
33
author=Peter Knight, Armin Joachimsmeyer
44
maintainer=Armin Joachimsmeyer <[email protected]>
55
sentence=Speech library for Arduino. Generates speech from a fixed vocabulary encoded with LPC.
6-
paragraph=Talkie comes with over 1000 words of speech data that can be included in your projects. It is a software implementation of the Texas Instruments speech synthesis architecture (Linear Predictive Coding) from the late 1970s / early 1980s. The voice is familiar from Texas Instruments Speak & Spell family of educational products.<br/>Copyright 2011 Peter Knight.<br/>This library is a reworked version which includes <b>8 MHz operation and non blocking capabilities</b> as well as a few utilities.<br/>The code for the queued non blocking version is based on the fork of Paul Stoffregen. https://github.com/PaulStoffregen/Talkie<br/><br/><b>New: </b>Improved SAMD support. Renamed examples.<br/>
6+
paragraph=Talkie comes with over 1000 words of speech data that can be included in your projects. It is a software implementation of the Texas Instruments speech synthesis architecture (Linear Predictive Coding) from the late 1970s / early 1980s. The voice is familiar from Texas Instruments Speak & Spell family of educational products.<br/>Copyright 2011 Peter Knight.<br/>This library is a reworked version which includes <b>8 MHz operation and non blocking capabilities</b> as well as a few utilities.<br/>The code for the queued non blocking version is based on the fork of Paul Stoffregen. https://github.com/PaulStoffregen/Talkie<br/><br/><b>New: </b>Fixed ESP32 timer bug.<br/><a href="https://github.com/ArminJo/Talkie#revision-history">Revision History</a><br/>
77
category=Signal Input/Output
88
url=https://github.com/ArminJo/Talkie
99
architectures=avr,megaavr,samd,esp32,stm32,STM32F1

Diff for: src/Talkie.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,20 @@
3232

3333
#include <inttypes.h>
3434

35-
#define VERSION_TALKIE "1.3.1"
35+
#define VERSION_TALKIE "1.3.2"
3636
#define VERSION_TALKIE_MAJOR 1
3737
#define VERSION_TALKIE_MINOR 3
38+
#define VERSION_TALKIE_PATCH 2
39+
3840
// The change log is at the bottom of the file
3941

42+
/*
43+
* Macro to convert 3 version parts into an integer
44+
* To be used in preprocessor comparisons, such as #if VERSION_TALKIE_HEX >= VERSION_HEX_VALUE(3, 0, 0)
45+
*/
46+
#define VERSION_HEX_VALUE(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
47+
#define VERSION_TALKIE_HEX VERSION_HEX_VALUE(VERSION_TALKIE_MAJOR, VERSION_TALKIE_MINOR, VERSION_TALKIE_PATCH)
48+
4049
// If you do not use the Arduino Tone library, then activating can save up to 844 bytes program size :-)
4150
//#define NO_COMPATIBILITY_FOR_TONE_LIB_REQUIRED
4251

@@ -108,6 +117,9 @@ class Talkie {
108117
};
109118

110119
/*
120+
* Version 1.3.2
121+
* - Fixed ESP32 timer bug.
122+
*
111123
* Version 1.3.1
112124
* - Improved SAMD support.
113125
*

Diff for: src/digitalWriteFast.h

+14-1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@
128128
(((P) <= 7) ? &DDRB : (((P) >= 8 && (P) <= 15) ? &DDRD : (((P) >= 16 && (P) <= 23) ? &DDRC : &DDRA)))
129129
#define __digitalPinToPINReg(P) \
130130
(((P) <= 7) ? &PINB : (((P) >= 8 && (P) <= 15) ? &PIND : (((P) >= 16 && (P) <= 23) ? &PINC : &PINA)))
131+
# if defined(SANGUINO_PINOUT)
132+
#define __digitalPinToBit(P) \
133+
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (7 - ((P) - 24)))))
134+
# else //MightyCore Pinout
135+
#define __digitalPinToBit(P) \
136+
(((P) <= 7) ? (P) : (((P) >= 8 && (P) <= 15) ? (P) - 8 : (((P) >= 16 && (P) <= 23) ? (P) - 16 : (P) - 24)))
137+
# endif
131138
#else
132139
#define __digitalPinToPortReg(P) \
133140
(((P) <= 7) ? &PORTB : (((P) >= 8 && (P) <= 15) ? &PORTD : &PORTC))
@@ -278,7 +285,8 @@
278285

279286

280287
// --- ATtinyX4 + ATtinyX7 ---
281-
#elif defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtiny167__)
288+
#elif defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) \
289+
|| defined(__AVR_ATtiny441__) || defined(__AVR_ATtiny841__) || defined(__AVR_ATtiny87__) || defined(__AVR_ATtiny167__)
282290
# if defined(ARDUINO_AVR_DIGISPARKPRO) || PIN_PA7 == 5
283291
// Strange enumeration of pins on Digispark board and core library
284292
#define __digitalPinToPortReg(P) (((P) <= 4) ? &PORTB : &PORTA)
@@ -291,6 +299,11 @@
291299
#define __digitalPinToPortReg(P) (((P) <= 7) ? &PORTA : &PORTB)
292300
#define __digitalPinToDDRReg(P) (((P) <= 7) ? &DDRA : &DDRB)
293301
#define __digitalPinToPINReg(P) (((P) <= 7) ? &PINA : &PINB)
302+
# if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny441__) || defined(__AVR_ATtiny841__)
303+
// https://github.com/SpenceKonde/ATTinyCore/blob/v2.0.0-devThis-is-the-head-submit-PRs-against-this/avr/variants/tinyx41_cw/pins_arduino.h#L334
304+
// Clockwise layout
305+
#define __digitalPinToBit(P) (((P) <= 7) ? (P) : ((P) == 11 ? (3) : 10 - (P)))
306+
# endif
294307
#define __digitalPinToBit(P) (((P) <= 7) ? (P) : (P) - 8 )
295308
# endif
296309

0 commit comments

Comments
 (0)