sure, then use the analogwrite and ramp it up. not sure why you asked about analogwrite being similar to digitalwrite then? since you want the ramp up it should actually not behave like digitalwrite :)
analogWrite is 10bit by default i believe, so a value of 256 would be rather dim even more so a value of 128.
if you want to blink a LED (just on and off) it is simpler to use digitalWrite (the blink example)
/*...
and i also measured the 5v line on the HUB. with all devices connected and booted it reads 4.91v. note though that the teensy does not get power from the HUB (which i could enable by means of a jumper) but from the...
and i managed to catch another example of a "no device working" example. this time i pulled the plug on the teensy soon enough to still catch the beginning of the serial stream.
Interface_16x16 Example
USB2 PLL...
and here is one that misses the minitaur:
USB2 PLL running
reset waited 6
USBHS_ASYNCLISTADDR = 0
USBHS_PERIODICLISTBASE = 20003000
periodictable = 20003000
port change: 10001803
connect
begin reset
if i enable debug (don't know why i did not think about that before) i get this on a "normal" boot, where everything works:
USB2 PLL running
reset waited 6
USBHS_ASYNCLISTADDR = 0
USBHS_PERIODICLISTBASE =...
ok,
since my last post was a bit broad and (therefore) got no answers/ideas, i will try to clarify. i have a 7 port usb hub connected to a teensy 4.1 which is running the following code: (heavily based on the 16x16...
i know this has been a long time ago, but your error most likely is that you need a
USBHost usbHost;
MIDIDevice_BigBuffer usbHostMidi(usbHost); //<- to host a 480mb device you need the bigbuffer object......
hi there, i use this code (adapted from the 16x16 example) on a teensy 4.1 to connect 7 usb-midi devices to eachother, there are also 4 din-midi connectors, but for now they are not used.
i use a powered seven port hub...
i have 7 devices on a HUB and it generally works REALLY well with the usb host library. i used one of these hubs: https://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ which has a separate power in and a...
nice project! and good to know i should be fine writing to the usb-client port with nothing connected.
i ran into this funny issue where all my midi devices connected to the host port of the teensy are only seen the...
hi there,
i made a USB-MIDI host to DIN Midi and usb-client MIDI device from a teensy 4.1 thanks to the great example "Interface_16x16"
it all works well, but i have one question. since i read MIDI mostly from one...
yes it does... actually i had the code in this way before:
if (midilist->manufacturer() != NULL && midilist->serialNumber() != NULL) {
Serial.println("-----------------------------------");
...
ok i narrowed it down to this:
in the default Interface_16x16 example, when i try to loop over the connected devices by adding
for (int i=0; i<7; i++) {
Serial.println((char*)midilist->serialNumber());...
coming back to this again:
with USBHost_t36 0.2 and Arduino 1.8.19 whenever i try to access the manufacturer or serial number of a connected mididebvice, the teensy simply reboots
so for example this line:
...
does the usbhost midi part somehow support the "cable" variable as well? as in the usbMIDI part? i would like to read some usb data that comes from a teensy that sends on multiple "cables" but i see there is no method...
hi there,
i have used the usb-host feature of teensy 3.6 extensively over the last year for a midi controller project. i had all my synths connected to a usb hub and the teensy midi controller would send midi to...