Or, try installing a fixed version of the Keypad library. Please let us know if it works for you and I'll submit a pull request; it seems OK with my limited testing.
Looks like the ancient Keypad library is in serious need of a bit of maintenance. Even though you can apparently specify the number of rows, it actually only allows for ten rows of 16 columns. Except that it’s possibly 32 columns for Teensy...
I have tried pins 14,17,20,21 already . They not work.
Note: i tested pins 13,14,17,20,21 works only when key matrix is 11row X 6col.
Cause trouble only when I add rows More than 11. All pins works if we use rows less than 12 keys upto 66
i have solder male header pins to teensy lc in this way
my 4 pins are reserve for 0 and 1 for midi , 18,19 for i2c display , next i want to use 20 pins of teensy lc in as keypad pins (14rowX6col=84 keys). but there is trouble with pins ...
thank you ... table posted in my post#2 was Strange type for me . i tried to study your recomendation pages + google search . i found for
Bnh 65h 00h 64h 00h 06h vv following sequence works
void SET_PITCH_BENDER_RANGE (byte Range) {...
This page may also be helpful in describing what goes on with RPNs and NRPNs.
MIDI control change commands start with a hex value Bn, where n is MIDI channel minus one; they’re followed by a control number in the range 00 to 7F; then a control...
I am not buy any means familiar with midi, but I found this:
Control Change Messages
…are made up of three bytes as follows (H denotes a Hexaecimal number):
Status Byte(n) – CC# Byte(cc) – Value Byte(vv)
That is: BnH ccH vvH
For example: to set...
A library download from
https://github.com/m5stack/M5Unit-Synth/tree/main
and tried code example built in
#include "M5UnitSynth.h"
M5UnitSynth synth;
void setup() {
Serial.begin(115200);
Serial.println("Unit Synth Piano")...
My Teensy became midi keyboard
if (( kpd.key[i].stateChanged ) && (mykey>0) && (mykey<48)) // Only find keys that have changed state. FOR [1-47keys]
{
switch (kpd.key[i].kstate) { // Report active key state ...
THANK YOU @shawn.
it is one what i want
Serial.printf("Read %s into memory at %08X; %d bytes\n", SMP_WAV[i], SMP_addr[i], sizes[i]);
snprintf(buffer, sizeof(buffer),"Read %s into memory at %08X; %d bytes\n", SMP_WAV[i], SMP_addr[i]...
if we have some information lines like this
Serial.printf("Read %s into memory at %08X; %d bytes\n", SMP_WAV[i], SMP_addr[i], sizes[i]);
can i convert it into string for use in single line function of ili9141 display.
for example any idea like...
using TeensyVariablePlayback library. i planned 96 .wav samples to play in AudioPlayArrayResmp by loading into Psram.
first i write AudioPlayArrayResmp 96 objects and 24 mixers to handle them .
by adding old/new all object ,the code section was...
I have working OTG cable between teensy and Android. Board is working well as midi, typing keyboard and communicate in serial monitor etc. But it doesn't appear as mass storage in file manager on My phone. I seemed it need special library..??
As MTP allow teensy to manage SD files from connected PC. As Android phone accept teensy in serial monitor app to communicate input and output. Can I manage (copy/delete/move/rename)Teensy's built-in SD files from my Android phone wia otg cable
Thank you Kurte ,,,
you are right. i was wrong . i was editing in
C:\Users\acer\Documents\Arduino\libraries\MTP_Teensy-pauls_branch\src\MTP_Teensy.h
now it is working....
Thank you..
topic was started with "change Name of MTP device apearing in window explorer" . i also tried as mentioned in post#2
#include "MTP_Storage.h"
// modify strings if needed (see MTP.cpp how they are used)
#define MTP_MANUF "PJRC"
#define MTP_MODEL...
You might also consider using '/' as your path separators and let microsoft's appalling choice of separator just turn into a distant memory. As a bonus your code will also just work on linux filesystems without any problems.
Edit: I consider...
Thank you
Mark J Culross
KD5RXT.
it is working as i want. i will try it to open folder & pic files name and try somthing like below
String myWav = "SnrRoll.wav";
String myWav_Fullpath = B_path[i] + myWav...
A single backslash '\' is being interpreted as an escape sequence. Maybe try using double backslash '\\' as follows (i'm away from my Teensy boards, so this is compiled only, & untested/unverified to work):
String B_path[10];
String Str_A =...
i have A folder "AUDIO" on sd root. 10 folders in "AUDIO" folder naming "B_0","B_1","B_2","B_3"....."B_9" each folder contain 16 .wav files. wav files name start with number like
-root-----
|----B_0
| |-01FlBeat.wav
|...
thank you wwatson,
your given example code exact same what i want to use , actually i am trying it to see maximum files name fit on display
I also tried folder name change length /AUDIO/SFX_001 instead of /AUDIO/SFX_1. yes it is working...
i have 4 files in folder name SFX_1 . and Folder name SFX_1 is in folder nameAUDIO as below
i create array to pick file name to play in wav player
char *wav_file[4] =...
Thank a lot WMXZ .. Your suggetion helped me . Device got ready (Serial+Audio+MTP)....
A short code i got in this thread working....
#include <SD.h>
#include <MTP_Teensy.h>
#define CS_SD BUILTIN_SDCARD
void setup() {
Serial.begin(9600)...
inwhich set of interface should be made changes
USB_MTPDISK or USB_MTPDISK_SERIAL or USB_MIDI_AUDIO_SERIAL or ?Any more?
As
#define PRODUCT_ID 0x04D1 is for USB_MTPDISK
#define PRODUCT_ID...
@charnjit: Did you follow the required advice in post #18, post #21, & <post #22> regarding changing the PID each & every time that you made a change (to get around Windows' undesirable caching of configurations) ?? Without making that specific...
Please complete modification editing of files to work mix of (ser,midi, Audio,MTP) ,and adding option to select for USB type for Ser,midi,Audio,MTP. To test
running window7 32bit. sorry did not understand "PID" /"BCD" . I think mistake is another one in mixing of interfaces.
alone [(USB_MTPDISK)] works. alone [Serial+Midi+Audio] works. not work all these in one.
have you never read/write any post...
Thank you Paul...
NUM_ENDPOINTS 7 also did not work.
teensy became offline from port . after press reset button , it became present on port but offline in Serial monitor.
failed!!
now tried mix Audio code in (USB_MTPDISK_SERIAL).
i left seremu. before ... NUM_INTERFACES was 3 . i set it 6 by add 3 for audio.
it became in usb_desc.h
#elif defined(USB_MTPDISK_SERIAL) // Testing ...... (Serial+MTP+Audio)...
Pleas look a bit here.
this code for Audio in usb_desc.h
#elif defined(USB_AUDIO)
#define VENDOR_ID 0x16C0
#define PRODUCT_ID 0x04D2
#define MANUFACTURER_NAME {'T','e','e','n','s','y','d','u','i','n','o'}
#define...
I want to All in one AS in title of thread above. when we select board "Teensy 4.1" from TOOLS menu ..looking no option
supported to (Serial+MIDI+keyboard+Mouse+Audio+MTP). if it is possible , i guess modification needed in files...
but i...
Thank you i got it solved ..
i reinstalled teensuino 1.60.5 after removed all anti-virus and sequirity.
now it is working with all my tested sketches..
sketches are being compiled &uploaded to board.
thank you
i installed TD 1.60.5 after 1.59 on Arduino 1.8.19 @ suggestion for MTP_Teensy
after installation completed PC restarted i got error
Linking everything together...
"C:\\Program...
there is no folder name :Program Files(86) in C: drive ,
problem became releated to install update TD 1.60.
so i will ask in new thread , and i will come back here , when it solved and stopped by MTP events.!!!!!
yes .. on Location
Teensy.exe not exist.
post #6 and #7 error coming from all simple example.
Teensy.exe file missing.
what should i do next how to recover it??
Request to Paul, Please check & advice.
after install TD 1.60.5 i tried copy example
https://github.com/PaulStoffregen/MTP_Teensy/blob/pauls_branch/examples/simple_t4_audio_sd/simple_t4_audio_sd.ino
using Usb Type: MTP Disk(Experimental)...