Po Ting
Well-known member
Hello Mark, I've been looking for MSD for a while
And uTasker is always a promising path to reach my project
Due to humanity laziness, and steep learning curve (?) of CW/other IDE
I think its rather ease, for serious hobby-list like me (am I?), to just follow sketches that compiles on Arduino IDE
I chose to learn and try what is easy, reachable, or has many reference/example on .ino to start on.
the uTasker code works on CW, codes are store in unfamiliar path and forms I'm not used to.
I remember registration on uTasker months ago, I can't even find where is the code with equivalent position to setup(), and loop()
A imaginary sketch like this would be easier for all other Arduino user to trace program flow,and thus further on.
if its like above, I can ultimately transplant the MSD to some part of my code, which is already to complex to combine with CW.
and I can dig into the library "USBMSD.h"? to modify anything needed, or just leave it alone.
just like what I could do to the MTP library, it has similary easy example to transplant.
https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution/page2
but still, its not a mission of the uTasker project,
maybe it was up to US, some further crazy hobbyist, to transform the code into usable form.
I found myself getting use to complex code than I was before.
And uTasker is always a promising path to reach my project
Due to humanity laziness, and steep learning curve (?) of CW/other IDE
I think its rather ease, for serious hobby-list like me (am I?), to just follow sketches that compiles on Arduino IDE
I chose to learn and try what is easy, reachable, or has many reference/example on .ino to start on.
the uTasker code works on CW, codes are store in unfamiliar path and forms I'm not used to.
I remember registration on uTasker months ago, I can't even find where is the code with equivalent position to setup(), and loop()
A imaginary sketch like this would be easier for all other Arduino user to trace program flow,and thus further on.
Code:
#include "USBMSD.h"
void setup(){
setupUSBMSD();
setupLEDpins();
}
void loop(){
if (USB.available())&&(SD.begin()) { // not sure if this correct anyway, "imaginary"
USBMSD.loop(); // turn on MSD if there is USB connection
}
toggleLED(); // else just be a flash LED stick
delay(500);
}
and I can dig into the library "USBMSD.h"? to modify anything needed, or just leave it alone.
just like what I could do to the MTP library, it has similary easy example to transplant.
https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution/page2
but still, its not a mission of the uTasker project,
maybe it was up to US, some further crazy hobbyist, to transform the code into usable form.
I found myself getting use to complex code than I was before.