bump bump...
Right now, playing with other things... Having fun with tablets right now.
Probably can try to answer questions. don't have hardware to debug, so you may need to instrument the mouse code and see...
Sounds good. What right now I am most interested in seeing are the messages that start off: HPID...
So hopefully with debug on: you should see several of them, which will show me the length, the report ID...
So...
Thanks, there is a little information for me to go query.
I pushed up some changes for processing the 64 byte message
Would be good if you synced up and see if you get anything.
Do you have a stylus? What do...
@lokki - would be interesting to see the startup of the sketch. For example with my Bamboo one it starts with:
USB Host Testing
960
*** Device HID1 56a:d8 - connected ***
manufacturer: Wacom Co.,Ltd.
...
More information from Ubuntu iusing journalctl
Aug 11 08:48:38 kurte-750-435st kernel: input: Wacom Intuos S Pen as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:056A:0374.0007/input/input32
Aug 11 08:48:38...
I picked up a replacement small one I mentioned earlier as I think I lost stylus for the old one:
So far the HID information for it:
USB HID Device Info Program
This Sketch shows information about plugged in...
The Big Buffer version was setup mainly for a few USB To Serial devices whose USB Interface Descriptors are setup to transfer 512 byte records instead of 64, like most of the others do.
My guess it would not have...
@lokki and all, I thought I would mention that we have been hacking away on the Wacom Tablet stuff and making some progress with a few of the tablets.
Instead of continuing to post zip files and the like, I have put...
Sorry I am not Paul...
But as for USB Controllers? I am not an expert, but I know on my older machine (now being replaced by my not as older machine), it had a USB 3 controller in it, that was not
100% complete to...
Sorry, have no idea what did not work means...
Also the one warning, I left in as it was there before and the owner should look at it and decide if just adding a default: break;
is OK or was he supposed to something...
Hold the button until you see the one led just blink and then release it, It should then show that LED lit up for awhile as it reprograms it, and then you should get the blink (the other LED) program on it running.
I pushed up a quick and dirty version: https://github.com/KurtE/lsm6-arduino-Teensy-I2C/tree/Wire12
That is for example with the example sketch:
LSM6 imu; // Will use the wire object
LSM6 imu(Wire1); // will use...
I have done a little more hacking since then,
Including change @mjs513 mentioned.
But also then doing some hacking for the longer version, which is still not right, but gives some more tools to help.
That is...
Quick note on the above: The inputs are coming from two different interfaces.
I am pretty sure the long ones are coming from Interface 1: Here is my dumping of that Descriptor,
HID Report Descriptor (0x20009c90)...
Hard to say: Note the data I am showing is how do I put it encoded... That is Wacom tablet, plus I am getting some interesting HID parsing stuff, that I don't understand yet...
Note It is not significantly changed...
I am making some progress... But still more to go:
I am doing some hacking to try to support different output page:
Note I have removed some comments out of here...
Also, would be nice to do this elsewhere. But...
I am playing some more with the older Intuos tablet and looking at some of the Linux stuff more there lower-level Input project...
I included the current version, that at least is showing some data...
Note: With T3.6 you do run into issues of having to hit the program button at times. I tried it with IDE2...
But did not lose output.
The interesting thing is, that if you start from a fresh Teensy, when I...
Sorry, I have no idea.
But if you have some examples of a functions that when run from FLASH that causes it to hang/crash, that you can post, maybe something might
give us hints on what is happening.
@defragster,
I am not sure I understand. Probably I have not had enough coffee yet :D
With this are you doing this with TyCommander? and/or are you doing it with the Serial Monitor stuff of Teensyduino?
If...
I don't know of any such guide for using the SD library, there may be one for the SDFat library that SD is now a simple wrapper of.
SD.begin() - I typically only call once. Now I know some have stated that if you...
At this point not sure what to tell you.
If you have something like:
KeyboardController kb1;
KeyboardController kb2;
...
void setup() {
...
kb1.attachPress(OnPress);
kb2.attachPress(OnPress);
...
Sounds good.
But still might be nice to get the debug data I mentioned from the other thread. Yes, mostly a lot of the same information.
But would be good. To see for example are the HIDParsers grabbing the...
Yes - I sort of noticed that earlier as well. I know Paul did something to fix it for 1.57 proper but was not sure if it was something in like platfrom.txt or something within their build.
Sorry, my anti-virus stuff does not allow access to that site to look at it...
Also, in this thread: https://forum.pjrc.com/threads/70824-USB-host-Teensy-4-1-with-Wacom-Intuos5?p=310597&viewfull=1#post310597
I put...
FYI - I have an Intuos 4 cheapy... And the messages are all different. I think the main stylus was lost, I get some information from stylus from old Bamboo.
I have another arriving next week.
Looking at some...
Sorry debug in distance:
I updated the code slightly in sketch's header file:
In Particular the message:
No Driver claimed topusage: 10002
Typo: was missing the 0x on the define... I probably should just put the...
Note WIP, to maybe easier debug this, I extracted the digitizer class for now and created a new version of it as part of sketch (second tab).
Where I hopefully will grab your tablets different top usage values and...
Again as another reference you might try the teensy_loader_cli: https://github.com/PaulStoffregen/teensy_loader_cli
Which you would need to build on your machine and see if it also causes you to crash or not.
One interesting point that your output shows: 05 0D // Usage Page(d) - Digitizer
Versus the one I have: 06 0D FF // Usage Page(ff0d) - Digitizer
if you look in digitizer.cpp
hidclaim_t...
@Paul and all - I pushed up an updated version of the sketch I mentioned and the changes into a new Branch and issued a PR:
https://github.com/PaulStoffregen/USBHost_t36/pull/96
Note: I have been doing some hacking onto the HID dumper program with a minor update to the HID Parser class, to gain access to the HID Descriptor.
in USBHost_t36.h I added a couple of members like:
class...
There is a digitizer class that probably should handle it.
You might try the Digitizer example sketch to see if it sees the events or not.
I know we have tried it with a couple of units like a Wacom Bamboo a long...
With some of these mice, I have purchased different ones. But not sure about $150 mouse 8)
Might be interesting to see what messages it generates when plugged in. and/or turned on. And compare it to others
Sometimes when you overwrite memory it is hard to know what the ramifications might be. It depends on what was overwritten. For example if something is on the stack (local variable), and you overwrite some variable...
That is what I am guessing. I know it does write out on close, or at least used to, as there was warning about manually editing the file, you need to make sure Arduino is not running...
Thanks, Paul, as I mentioned I had changed the Preferences for Sketchbook using their preferences dialog. And the GUI was finding the sketches in it...
This time it worked properly... wondering why in the one case...
Now that TD has been released, I have started playing a little again.
Yesterday I started an experiment I mentioned recently, wondered if we really need multiple wrapper classes for FsFile objects...
So I tried...
Let us know when you have swatted enough bugs and pushed up your current stuff.
Interesting I found with Windows 11 and the wsl 2, that indirectly windows can now do some stuff on Linux file systems. That is for...
Paul,
Quick note: I ran into interesting issue yesterday, building with current release. Note I built using TSET stuff (Defragster) on SublimeText, but it is using the Arduino 1.8.19 build setup.
Transiting to...
As Paul said, it is hard to know what is happening without seeing more..
I expanded on Paul's example:
void setup() {
analogWriteFrequency(3, 10000);
analogWrite(3, 120);
analogWriteFrequency(23, 10000);
...
Ouch...
So far, I have not run into that. For example, I put a new MMOD in the breakout board that Paul made.
And I used the test program that @defragster and myself hacked on:
#ifdef ESP_PLATFORM
#define...
Sorry, but hard to know what is going on with this. And details about some of thest things.
For example the Microsoft Mouse, is it it's own hook up that emulates normal wired keyboard? I have some MS combo units...
I know that the information has been posted recently showing the T4.x ports.
There are actually 4 ports: Ports 1-4 (or in high-speed mode) 6-9. Most of the time on Teensy 4.x we are using the GPIO in high speed...
Again, does not surprise me. Paul - would be better with your own board!
As I mentioned,
Pin 22 I believe is MMOD pin 49 (BATT_VIN3)
Pin 28 is MMOD 4 (3V Enable pin I think)
Where the Enable is one one side...
If it were me some of the things I would try include:
I would probably expand cmdBuffer to something longer like lets say 80 bytes.
I would check that I did not overflow it:
c = Serial.read(); //...
Note: One thing I meant to mention, is that there have been a few times, I thought something was not working properly. But then after I removed the MMOD from the board and put it back in, it worked fine.
So,...
Yes - I had not noticed that yesterday, but it does help to let people know something is going on, especially if they have not turned-on verbose output for compiles.
As I mentioned I wish they would fix a few of...
That sounds like a pain. So far, I have not noticed that, but I don't have that many of them. I have a couple sitting around, that I have not used yet. But again, I mainly just play and could have missed it.
Are...
Might be good, but to be honest, I have not been using the 1.8.19 IDE very much these days. IDE2 is working a lot nicer now. Still have it's warts, especially with the Serial Monitor... But in that case if there is an...
Note: I am not seeing anywhere in the code posted that sets anything but the buttons.
That is, I am not seeing something like: for (int i=1; i <=4; i++) Joystick.hat(i, -1);
ditto for the others.
If it were me, I...
Sorry, I am not sure with the information here, on what suggestions to tell you.
You might try the _t3n version of the library to see if it works any differently.
writeRect is more or less the same as fillRect,...
Sorry, again I am probably not much help here, other than ask questions and maybe throw a dart or two. And maybe it might help to localize down the issue.
Is this a new T4? Or have you had it for a while? Wondering...
Maybe we should back up some here, and get back to basics.
That is, which LED is blinking? RED or Orange?
If Red one near USB port than the number of blinks might mean the stuff mentioned.
If the Orange...
Sorry, I don't have your setup, so cannot test.
But the things I would try include moving the calls:
musicPlayer.setVolume(20, 20);
/***** Two interrupt options! *******/
// This option uses timer0, this...
There are 3 different sets of USB sources, the one you are mentioning for Teensy 2.x
The sources for Teensy LC and 3.x are in cores\teensy3
So for example, the descriptors are defined in cores\teensy3\usb_desc.h and...
I have now tried with two different Sparkfun adapters.
One that is not level shifted: https://www.sparkfun.com/products/544
And another that is: https://www.sparkfun.com/products/13743
I ran the SD list files...
Sorry I am not sure what else I can tell you:
The USB Keyboard link I linked to earlier, shows the key codes that are understood by the USB Keyboard code. The code on press and release will figure out by the codes...
If it were me, I would use a different SD Adapter. One that does not have level shifters on to convert 5v signals to 3.3v...
Although I have found that some of them may work fine. Are you connecting the VCC pin of...
Sorry, I have no idea what you mean by ABS events associated with a keyboard? Keyboards send keys...
Now if you instead choose usb type of: Keyboard + mouse + joystick
You can then send either of the two other...
I created an issue on github... https://github.com/PaulStoffregen/Website_Updates/issues/32
This points to the two recent threads on the Teensy LC documentation page.
With most of the USB Types there is some form of logical Serial driver.
The USB Types with the name Serial in them setup a standard Serial interface and will show up like /dev/ttyACMx...
Those without that name...
I could be wrong, but I am thinking it is probably the lines like:
Joystick.button(kpd.key.kcode, 1)
Where I believe the values for the keycode are something like ASCII '0' '1' ...
Where I believe the joystick...
Sorry been distracted, trying to get another computer to work...
Here is a sketch I tried long ago, with just doing output...
//============================================================================
// Test...
Have you tried using the Adafruit_BMP280 library? although it uses the Wire library.
You might either try using it and/or glance at it to see how they are reading the temperature.
Hard to say for sure, without seeing more information, like what code is run, using library? if so which one, and wiring...
But guessing, that maybe timing issue. Like again don't know what keypad code you are using,...
Look at the thread: https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC
With 1.57 and MTP_Teensy: https://github.com/KurtE/MTP_Teensy
Mass Storage Controller (MSC) - is...
Installed on W10 both ways (1.8.19 and updated RC9)... SO far so good.
Also migrating to a W11 machine, Not much on it yet... But have both installed. So far I have built blink for T4.1 on RC9
What two SPI ports on T3.2? you may want to map out the 23 pins for the different boards, and make sure the functionality is hooked up the way you think.
For example you may want to go through the SPI pins. For...
is there anything connected to the IO pins on the 3.5 that would not be connected by the 3.2 because it does not have those pins?
Example SPI device where CS pin is on one of those pins. Where on 3.5 maybe is pulled...
If you wish to convert a number to hex, there are many different ways to do so.
You could use something like sprintf to do so.
like:
char szTemp;
sprintf(szTemp, "%04X", my_val);
Might help to have a lot more information....
Like what all is on the T3.2? What example code that is failing. What version of Arduino and Teensyduino are you using?
A picture of the hardware often helps.
attachInterrupt(...) - is used to connect an interrupt handler to one or more IO pins.
This is processed by one or more InterruptHandlers assigned an interrupt vector. Typically by IO ports.
You call...
I believe if you are using the Adafruit_BMP280 class, you have the constructor that takes in which Wire object you are using:
like in the example chage: Adafruit_BMP280 bmp; // use I2C interface
to:...
Thanks Paul,
Yesterday I was going to mention about Gadget mode, but I know very little about it. I believe it might be better supported on RPI's that have a OTG USB port? Or at least sounded that way at some of...