btw. this is how to make a sysex file into easy to fix array data(remove the last comma):
hexdump -v $SYSEX_FILE | awk '{print $2$3$4$5$6$7$8$9}' | fold -w 2 | sed 's/^/0x/g' | sed 's/$/\,/g'| tr -d '\n' | fold -w...
Did you remove the lines in PXP_Start from PXP_Init? I tried the same thing, but renamed the new function PXP_XStart(), since I already had PXPStart. Every thing seemed to work as expected. Even if I removed the...
Excellent news, glad we got it sorted out. It’s prompted me to improve the documentation for the PR branch (it shows up in the Design Tool), so once it’s in, things should be a bit easier for everyone.
Something odd that I can't figure out:
If I move the following code from PXP_Init() into it's own function (lets call it PXP_Start):
void PXP_Start(){
CCM_CCGR2 |= CCM_CCGR2_PXP(CCM_CCGR_ON);
PXP_CTRL_SET =...
I'm doing some simple raytracing on the Teensy 4.0. That means doing a lot of dot products of normal vectors, so lots of decimals with values from -1 to 1. I've been using single-precision floats, but I don't think this...
My post#38, second and third bullet points ... your posted code has been modified, though not actually in an important way (someone added a question mark after the line @BriComp highlighted). More important, it looks as...
/**
* Audio Guestbook, Copyright (c) 2022 Playful Technology
*
* Tested using a Teensy 4.0 with Teensy Audio Shield, although should work
* with minor modifications on other similar hardware
*
* When...
getting this now moved the files and folders like u said
Arduino: 1.8.19 (Windows 10), TD: 1.57-beta1, Board: "Teensy 4.0, MTP Disk (Experimental), 600 MHz, Faster, US English"
...
Probably OK ... hard to tell without seeing the full path to the folder and a glimpse of its contents. It doesn't need the -main on the end, but I think it doesn't hurt, either.
Oh dear, I have just compiled the copy I downloaded to my PC without any error.
Do you have this line in your code: #include "play_sd_wav.h" // local copy with fixes?
I have just commented it out on my copy and get...
A few things:
please refer to Paul's post and the image I posted to make sure the MTP_Teensy library is in EXACTLY the right path - your image shows that it isn't
double-check you have downloaded and not modified...
Looks like you copied everything that was inside the original MTP_Teensy folder to the Documents/Arduino/libraries folder. But you should have copied the MTP_Teensy folder (with all of its contents) to...
So it should look something like this (click on the image to enlarge it...):
I've done some improvements on the documentation, which you can find at...
I succeded in compile (heeem, trivial, I installed the latest audio lib...)
But now I have the I2S clocks multiplied 4x
I tried to divide per 4 setI2sFreq value, and now have the correct frequencies
but I wonder if...
If you find MTP_Teensy inside a "libraries" folder, don't make the mistake of dragging that libraries onto the libraries inside Documents/Arduino. Doing so will result a libraries folder inside the libraries folder. ...
Yep - sorry for my misunderstanding! Now it works like a charme!!!
Many thanks for this - MicroDexed now supports loooooooong delays and some more memory for variables is available. I created a library which can be...
It's less than 32K bytes, so space is probably not an issue, but you need to remove the '\' characters at the end of each line. That's a syntax error. You only need that when you are extending a literal string, or a...
...as to where to put them...
Your programs/sketches (whatever you wish to call them) are stored in the directory C:\Users\iandi\Documents\Arduino\.
Libraries, which is what MTP_Teensy is, are stored in a directory...
I tried putting a test array containing a SYSEX dump into my header file.
for trying out usbMIDI.sendSysEx(31520, sysexfile_data)
char sysexfile_data = {\
0x42,0xf0,0x19,0x30,0x00,0x4d,0x4d,0x00,0x73,0x69,\...
This error from msg #16 (edit: and now also msg #24) means you're still missing files that need to be installed on your PC.
Hopefully now that you have experienced the way Arduino IDE and Teensy Loader...
nope still not compiling
getting this message
Arduino: 1.8.19 (Windows 10), TD: 1.57, Board: "Teensy 4.0, Serial, 600 MHz, Faster, US English"
Multiple libraries were found for "SD.h"
...
I just tried by adding a delay of 1 sec before Wire2.begin() in setup() and a delay of 1sec after too. It did not help.
My condition to print ADC data is if(Wire2.available()). It should print any data valid or not,...
We have been concentrating on the if (Wire2.available() >= 2) { but of course if the ic does not see a request to send then Wire2.available() will always be false.
I see that the adc is addressed relatively early in...
SDA1 and SCL1 are addressed as Wire2.
You need to change line 308 :- if (!bmp.begin_I2C()) { to include the Wire2 assignment.
So something like if (!bmp.begin(BMP3XX_ADDRESS, &Wire2){.
NOTE:
I am not sure...
Hey all,
Re: Teensy 4.1
I am having difficulty connecting multiple I2C devices (using the SDA, SCL, SDA1, and SCL1).
I am trying to connect a BMP390 via I2C and an LC709203F via I2C. I have the LC709203F connected...
Oh, I forgot: If you go the the USBHost_t36.h file and uncomment line 62, you will see a lot of debug messages from the USB Host library. Maybe that might help to locate where it crashes.
// Uncomment this line to...
I just flashed that code onto my sequencer hardware and plugged in and plugged out my Launchpad Pro 20 times in a row, with me waiting, with me not waiting a bit to hopefully see where it crashed, but I had no crash at...
The only solution we have found so far was to change the udev rules to
and to run the FLIR Spinnaker SDK as user (ie. non-root). This has been a humbling experience in terms of using sudo as a development crutch;...
Thanks very much for this. It works to ignore the CC data when plugging in and then takes CC data after. However, it's freezing and crashing when unplugging and plugging back in about 80% of the time - it's not...
Personally I'd read all the values into one value (may as well use a uint32_t, it's a 32 bit processor) and then use bitwise operations to calculate all the outputs at the same time.
If you define the pin numbers as an...
Hello!
I want to build a small tool to manage my Korg M1 with
a Teensy 4.0.
So far i got midi CC to SYSEX message translation working
for configuring the Presets.
Since i do have an audioshield with sdcard i...
It looks as if you've requested to use delay memory fitted to the audio adaptor, but previously you said you put it on the Teensy 4.1 as EXTMEM - try changing that statement to AudioEffectDelayExternal...
I just tried the PR, but unfortunately it does not work. I put a 200ms sine signal into the delay and get nothing (except the original signal). With AudioEffectDelay() everything works... re is the code I used:...
Oh! Now I see what I missed. I am so sorry! You don't want to ignore ALL messages but just the first few one that the controller send on startup!
You are totally right with the assumption, that the buffer is your...
This is just to confirm that it's working to control my 4 quad digipots. I used to use SPI with CS pins, which worked out to 6 pins total. Nice to see that I can now accomplish the same thing using just 2 digital pins...
I'm Brazilian, sorry for my English.
I need 4 sessions on mDNS. I saw that this topic is a little old, so I thought there was a possibility that some of you have solved this problem. Thank you very much!
Actually your text displays probably displays for 50 milliseconds. You are clearing the display in the mode selector so your display will get cleared (of course depending on button states). Since your stand by text and...
Yes I want CC messages. I don't want the messages that get sent by some MIDI controllers when they get plugged in and start up - they're irrelevant. Perhaps I should mention that I'm taking MIDI in from USB Host, USB...
Hey Kris, I tried adding the BLACK to the text but that doesn't work. I rewrote the code. I can get STANDBY AND ALT OFF
to work great with a switch. No problem there. I just can't get the text to show up from the val...
Table lookup is one approach, combine the inputs into a single int and do the lookup, then expand for the outputs - the advantage is each logic function just needs a different table, not more coding, the disavantage is...
In CMOS chips pullups and pulldowns are implemented as weedy little MOSFETs with a long narrow channel, giving resistances in the 10's of kohm range (and I repeat nothing to do with drive strength at all). Drive...
Microcontrollers are much less complex that computer CPU's, they benchmark much more consistently - being tied to hardware (hard real-time constraints) means adaptive clock speed is more problem-shaped than...
In general its wise to only turn interrupts off for timescales of microseconds, typically as a "critical section" (small amount of code bracketed by cli/sei). You never just turn them off and leave them off as many...
Note, there are two types of memory that you can solder to the underneath of a Teensy 4.1.
There is PSRAM and flash. Both can be accessed as main memory. These chips use the normal cache, so as long as you are just...
If you really want to pour more time into it, you could remove the NCV8186AMN330TAG and then try externally applying 3.3V. Best to use a current limited lab bench power supply with a limit around 150mA. Even if you...
No, clearDisplay literally clears everything in the video buffer. Noting that this particular display driver uses part of your Teensy memory as the video buffer. I see you have this call in your update_xpndr function....
Thanks Paul. Very good of you. Alas, I already have a replacement Teensy. I just considered fixing the dead one if possible. As it's probably the CPU that's dead, it's probably not worth it. Must be the most expensive...
If you want to attempt replacing the NCV8186AMN330TAG regulator anyway, I'll be happy to give you a spare part at no charge when you order a replacement Teensy 4.1. Just mention this forum thread in the "additional...
Yes - https://forum.pjrc.com/threads/70963-Yet-Another-File-Player-(and-recorder). Not specifically for the Amazon Basics SD card, but if you want to give it a try I'd love to know if it works. 2Mbytes/sec should be...
I converted the images to C and loaded it into Progmem
Then I used the Adafruit GFX.h library's bitmap routine and that seems to work well.
I used:
const uint16_t Border PROGMEM = {
0x0000, 0x0000, 0x0000,...
Hi Paul,
thanks for the reply, I've seen that example, I was just unsure
as it just uses a normal array with all leds in it.
I have found the part of the FastLED source in the mean time and am
pretty positive that...
@SteveCS:
It looks like there are some image tools (UTFT), with example sources, included as part of the TeensyDuino installation (located at "C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\UTFT\Tools"...
The regulator on the T4.1 that supplies the 3V3 is short-circuit tolerant.
But the CPU, powered by that same 3V3 regulator, would definitely not be happy with even a momentary 5V on its power pins.
Paul