Might require multiple hub objects, as some hubs with more than maybe 4 ports, are made internally with multiple hubs. Also don’t remember if serial objects require HID objects. Also don’t remember if Pico connects at full speed or high speed...
So far I have only been doing the hobbyist things with it... Then again ditto for the Teensy boards 😆
But I am having some fun. I nice diversion/distraction.
As for product things. My guess, is that Arduino is probably working on a second...
TeensyAtomThreads Library and Example Sketch
The ZIP file contains the latest files from A-Dunstan's TeensyAtomThreads repository, plus two files I created, library.properties and readme.txt. You should unzip to folder...
Typically when I mount the T4 or t41 on a board I am using normal height headers and sometimes low profile headers. Havent had an issue with mounting that way - using headers does leave space between the botom of the t4 and the PCB I am mounting...
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...
Or you could quickly hack it and do something like instead of printf
Serial.print("Base name: ");
Serial.write(filename, strlen(filename) - 4);
Assuming they all have .wav on it...
else you could use strrchar(filename, '.');
to find the last ...
I've recently taken a few steps to deal with the Russian bots creating new accounts.
Banned 114 netblocks. Will give the list & details below.
Registration now rejects anything from PureVoltage ASN 26548.
Registration now checks GetIPIntel.net...
You are right, more like this:
void setup() {
// Wait for port to open:
while (!Serial && millis() < 5000) {
yield(); // wait for serial port to connect.
}
Serial.printf("%cFull path parsing example.\n\n",12);
dn =...
@charnjit - the only time you have to free memory is after calling dirName() or stripExt() functions because those two functions use the strdup() function. Freeing memory should be done after calling either one of those functions.
free(dn)...
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...
If you use @wwatson's code, or something like it, you should add
free(dn);
free(fn);
when you've finished using them, because strndup() allocates space from the heap. If you don't, and make repeated calls to either dirName() or stripExt(), then...
Maybe try this sketch out:
// path_parser_test.ino
/* This is an example of parsing a full directory chain
* and filename with an extention. All four parts are
* seperated out into seperate strings.
* dn is String for directory chain.
* bn...
Thanks @h4yn0nnym0u5e, I had forgot about that. Modified the code by removing "DMAMEM" from src[] array:
uint32_t src[4] = { 10, 20, 30, 40 };
The code works as expected:
DMA channel assigned: 1
Triggering DMA manually...
✅ DMA ISR fired!
✅ DMA...
You might want to check out this post that is about Teensy DMA usage.
As @BriComp mentioned you need to put your code between code tags. That is accomplished by clicking on the "</>" symbol in the upper left corner of the post window. It will...
That's good to hear. No worries about vga_4bit_t4 lib. It's meant to be user usable no matter how it is configured :D CP/M and MP/M are very much text oriented anyway. I'll download and test and then play with it. Hopefully this is the last of...
If 20K of the 150K code could be made FLASH resident it would result in another 32K block of free RAM1 reducing that wasted padding:13048
There is a 32K code cache - that should hold all of that most used code, if not found in startup one time...
Man, you just can't seem to get a break o_O I am setting up the Arduino fZ80.6 for compiling right now. I looked at your stripped down version if VGA_4bit_T4. Whatever it takes to stabilize the code;)
I am just now playing with it. Still reading the manual and getting used to MP/M. I think you have it locked down. That kind of memory usage is to close to borderline stack trashing. I'll wait for updates:)
I wrote this up for myself, to go into the source. But it tells the tale above. linearly.
At the moment I'm using a very stripped out version of VGA4BIT, which I'd done initially looking for bugs that might write into my Z80 banks in the same...
Yeah it's very weird. Now CP/M doesn't do this! And the Teensy code is the same! CP/M also has a (very simple) timer tick. ANd it can run multi-window, or not, so that code isn't it. This is why I was so baffled! I couldn't see how it wasn't MP/M...
For any version of Windows, you need to use a different PID/Version combo to get Windows to pay attention to the fact your device is different than the last time it connected. It's really annoying, but that's how Microsoft made it.
However...
Bummer:unsure: I use the IntervalTimer for a key repeat function in my USB keyboard driver and vga_4bit_t4 without issue. I am very curious to see what might be causing the issue...
@charnjit.
Read Paul's answer #4 and #7 on number of endpoints.
You can use my solution for testing. If there is something not clear, ask specific questions.
For us to help you, you should show that you read and follow suggestions. We can and...
OK will do!
Oh, I don't actually *understand* the VGA/DMA code! lol. Honestly I haven't tried; I worked around it; I have a ton of krap to do to get out from under this grown-insanely project! But I will not forget it.
I've snapshotted a...
Thanks for the tip @jmarsh. So instead of:
arm_dcache_flush_delete(s_frameBuffer[frameBufferIndex], fb_height*_pitch);
Change it to:
arm_dcache_flush(s_frameBuffer[frameBufferIndex], fb_height*_pitch);
Will try it out and see if there are...
WOW!! Sounds like maybe playing with interrupt priorities might shed some light on the problem or help. Just a thought if you have not tried yet. Other than that I'll play with it and see what happens. I've been in those nasty bug swatting...
This 7:23 summary a few hours old - in a word it is 'Weird' power not up to Pi4 level - they call BRICKS the combined INO and linux Python:
Some test specs/notes he exposes here:
https://github.com/geerlingguy/sbc-reviews/issues/83
Been playing around with the Q for the last couple of days developing an actual app that reads imu data from the MCU and processes it on the MPU through a Madgwick filter. Note think we are working on the 2gb version as saw something thats says...
The 'out of stock' was of course on their website for a 77 $/pound? item.
I just ordered the Ethernet capable version @KurtE linked (the 2nd) - $25 and will be here in a couple of hours.
The IDE can be used to program just the MCU - I did not...
Uno, Mega, Nano, etc - are now names by form factor. I personally did not feel the UNO R4 was properly named as it too much implied
that it was the next revision and it was far too different from the R3... But for example there is the Nano and...
After this you should check if the call succeeded with
if (TheFile.isOpen()) or even
if (TheFile)
before blindly assuming the IO will succeed.
TheFile.write() returns the number of bytes actually written to disk. So if it returns 0 or less than...
My last order came in pink poly as well. Besides inadequate ESD protection, the oversized thin poly bags also don't protect as well from physical damage.
The fact that the bags are preprinted makes me think it may be a permanent change...
SBC - with Arduino onboard:
Hardware & Software Requirements
Hardware
Computer (Windows/Mac/Linux)
Arduino® UNO Q board
USB-C® cable
Alternatively, using the board as a Single Board Computer (SBC), the following is required:
USB-C dongle
A...
That's a long time. Waiting 25 seconds for a boot up
I don't get the hype in the microcontroller world for this. It's not a microcontroller, but a microcomputer. More so to compete with the Pi.
Add to that everything seems so undeterministic.
Thank you wwatson ...
yes it is exact what i want . your given code alone working well.
i will try it mix display+keypad code & report if any error occur.
thank you....
I have been playing with the file manager for quite a while back when I first wrote the driver for the RAIO RA8876 TFT driver. That was a 10.1" TFT from Buy Display. That was around 2018. Shortly after that I modified a version of STBASIC09...
Those cabinets will be nice. Mat black? Sounds like you are getting close to the finish line. You are being very generous😀 can't wait to play with MP/M ||. I have never messed with it before...
@charnjit - I have created a simple sketch as an example of multi file copies between USB to SD and SD to USB. Hopefully this was the example you are looking for. It has a simple menu with four functions available...
@charnjit - First of all your opening and closing braces are all wrong although it still compiles:confused: You lucked out I guess.
void DO_COPY () {
}
void setup() { // This starts the setup function.
// } -----------> wrong
// void...
Thanks, It works perfect (y) I really like that you keep margins on all four sides when resizing the panels. That way all four panels are always in view. I am working on a complete rewrite of a file manager for the Teensy that I had cobbled...
F1 through F12 are the window-changing keys. I think F12 brings up the big cross cursor. You've run VGA M to get into multiwindow mode? You see four windows?
F1..F4 selects window 1..4. In the version you have, F12 should bring up the resize...
I finally got some time to use the latest posted version of fz80. Just can't seem to figure out how to get the sizing cursor to appear and how to switch between windows. Any hint's...