change
sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);to
sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);
Type: Posts; User: neurofun
change
sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);to
sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);
Without a pullup resistor the input pin is connected to nothing(floating), its state is undefined and influenced by different factors. Simply put, the wire attached to the pin acts like an antenna.
...
You definitively need pullup resistors on those pins!
MacOS 10.13.6, Arduino 1.8.12, TD1.51beta1
Tried both the touchscreen examples on T4 and indeed the T4 crashes after executing the TouchScreenUSB.press commands, so I suspect there might a...
Well I think that's your error. You don't need to drop anything anywhere since the AudioSynthWavetable class is included in the teensyduino audio lib.
So now you have 2 copies of the...
teensy code:
In setup() you need to add the pinMode command to configure pin 13 as an output or the led will not work.
In loop() change Serial.write to Serial.println(to send an ASCII...
@llamero
There is nothing wrong about your setup, v6.3.4 of the Snooze lib seems to be broken.
The author(Duff) knows about it and mentioned he would be working on it.
see:...
Do not want to add to the confusion but did a get info on both files and there are some differences.
file size
creation date
enable app nap option
18930
I consider for myself this problem...
I have no idea either.
But I fixed the problem by copying Teensy.app 1.50 installed in Arduino 1.8.10 to Teensyduino Catalina 10.15 version.
iMac12,2 OS X 10.13.6 (17G10021)
Catalina 10.15 version -> show package content -> double click Teensy.app
result:
18927
No errors in the console.
No, the Teensy Loader window does not appear.
There is no process "Teensy" visible in the Activity Monitor.
Previous post was referring to iMac12,2 OS X 10.13.6 (17G10021)
different system, different result:
MacBookPro8,2 OS X 10.13.6 (16G29)
The Catalina 10.15 version runs without crashing, also...
The Catalina 10.15 version runs without crashing, also after a system reboot.
I can compile but not upload.
Opening Teensy Loader...
Unable find Teensy Loader. (p) Is the Teensy Loader...
1.49 runs fine with arduino 1.8.10 as does 1.50.
But cannot install 1.49 on arduino 1.8.11 which I think is normal since arduino 1.8.11 is only supported by td1.50.
Plain 1.8.11 does not crash....
Same behaviour with 1.50-beta1.
I spoke too soon. After shutting down both macs and have a good night sleep, today arduino crashes on startup on both systems.
Process: Arduino [917]
Path: ...
MacBookPro8,2 OS X 10.13.6 (16G29)
iMac12,2 OS X 10.13.6 (17G10021)
Arduino 1.8.11 & TD1.50 is running fine on both systems.
To recap the problems found so far with v6.3.4.
Tested with TLC, T3.2 & T3.6.
The following does not work:
-enabling the pullup resistors via SnoozeDigital.pinMode()
-wake from digital pin...
It might actually be a better idea to download v6.3.3 of the Snooze lib and install it in the user library folder instead of downgrading TeensyDuino.
Snooze lib v6.3.3 ->...
This was only meant to enable the pullup resistors, not as a fix for the Snooze lib.
See @defragster's previous post.
You must completely remove your current TD1.49 install of the Snooze lib...
Tested the code and indeed it does not work. Upon further investigation I found 2 issues.
First:
The following does not activate the internal pullup resistors.
digital.pinMode(21,...
The internal pullup resistors are enabled so you need to connect pin 21 or 22 to GND.
Unplugging the wire will then create a rising edge.
Try this:
while (!Serial && millis() < 2500);
@theczar1987
A few few remarks concerning your code:
The queue is 128 words(samples) long, not 256!
In your code the queue1.playBuffer() command is executed once per loop/sample. It should...
Yes, see: https://www.amphenol-icc.com/fpc-ffc-hfw8r1ste1lf.html
I am afraid not! The part you linked is the straight version and has a different footprint than the right angle version.
see: https://www.amphenol-icc.com/fpc-ffc-hfw8s2stae1lf.html
and click...
LOOP_PHASE_LENGTH doesn't look right, subtracting a negative number with unsigned integers doesn't make sense in this case.
This seems to remove the artefact:
((uint32_t)2048 - 1) << (32 - 12),...
Your switch statement is being executed every iteration of the loop which means you are constantly un-patching patching the cord.
The switch statement should only be executed once for every button...
Autocenter is now working for the internal font & the RA8875 lib supplied fonts. Thanks.
void RA8875::setCursor(int16_t x, int16_t y, bool autocenter)
autocenter does not work anymore. (tested with the internal font)
Still works fine with the TD1.49 supplied lib.
@tele_player
I think being precise or pedantic as you say, is important to avoid confusion or misunderstandings, especially when dealing with technological stuff.
Thanks for the clarification.
Yes, like this.
AudioSynthWaveform* waveform = new AudioSynthWaveform[4];
See following thread for a complete example: https://forum.pjrc.com/threads/58158-Accessing-Audio-Objects-from-an-Array
You could also use the c_str() StringObject Function.
File dataFile = SD.open(filename.c_str(), FILE_WRITE);
Use connect() & disconnect() on existing audio connection objects by adhering to the following:
Instantiate all possible AudioConnections needed in the project(in the global scope, as usual)....
Just for the sake of correctness.
Your statement is only valid for T3.x.
On the T4.0 the audio lib runs @ 44100Hz.
Not mine and not tested.
https://github.com/noisegate/kicadlib
audio shield symbol in teensy3.lib
audio shield footprint in teensy.pretty
If you blindly copied the revD schematic without checking the SGTL5000 datasheets, pretty sure you've got it wrong.
Checked your schematic.pdf file.
The connections of your I2S datalines need to...
NRPN & RPN are fully supported by the 3 midi libs.
Have a look at Examples/Teensy/USB_MIDI/TransmitEverything.ino
There's an error in the audioshield revD schematic. You need to swap pin 7 & 8 on the T4 side.
see: https://forum.pjrc.com/threads/58550-audio-shield-rev-C-and-rev-D-TX-and-RX-pins
Both /RESET and /HOLD need to be connected to 3.3V.
Did you connect the 3 address lines to GND?
tft.setFont(INT);or
tft.setFont(INTFONT) //sumotoy;depending on which lib you use.
@mjs513
beta3 with changes from post #25
running at the default 22MHz showing 284ms
changed to 18MHz and now showing 275ms
unmodified beta3
@17MHz -> 246ms
@18MHz -> 248ms
@19MHz -> 256ms
Located the problem in SPI.cpp around line 1281
changed
CCM_CBCMR = (CCM_CBCMR & ~(CCM_CBCMR_LPSPI_PODF_MASK | CCM_CBCMR_LPSPI_CLK_SEL_MASK)) |
CCM_CBCMR_LPSPI_PODF(2) |...
It is indeed very strange. The display i'm using is the 4.3" from buydisplay.
I even wonder if it has anything to do with SPI because in my main application I also use the SPI1 bus to read the...
Did some more tests and USB Type does have some influence.
With this new test I get opposite results
#include <SPI.h>
#include <RA8875.h>
//teensy4 SPI0 RA8875
#define TFT_CS 10...
The slowdown is clearly visible on the display.
Changing clockspeed.c does not resolve the slowdown.
Yes, I'm sure about 2940ms. But that was yesterday.
Today the times vary around 2300ms,...
T4 @ 600MHz
With this example beta 3 is about 10x slower than beta2. 2940ms vs 283ms.
#include <SPI.h>
#include <RA8875.h>
//teensy4 SPI0 RA8875
#define TFT_CS 10
#define TFT_RST ...
T4 @ 600MHz
using this RA8875 lib: https://github.com/mjs513/RA8875 to draw 2 different types of screens.
With TD1.49b2
screen1 takes about 23ms to draw
screen2 takes about 65ms to draw
With...