Go Down

Topic: Change the Default sketch (Read 2 times) previous topic - next topic

eried

My website: http://ried.cl

Tom Carpenter

Is it just a modified class file like before? If so could you just post that class file as I don't need all the other stuff and this 50MB download is taking forever (its not my internet access as usually I get about 20Mb/s)
~Tom~

eried

Yes but I don't remember 100% if is only this file, this time was harder to add via 'hack', I used an old string I found inside the class (something about "Sunshine- go to take a walk", when the sketches of the day are more than N number hahah). (Attached)
My website: http://ried.cl

Tom Carpenter

Thanks, that worked great. Just renamed pde.jar in the /lib/ folder to a zip, replaced the class file, and renamed it back. Worked a treat!
~Tom~

Tom Carpenter

#19
Aug 14, 2012, 12:34 am Last Edit: Aug 14, 2012, 12:37 am by Tom Carpenter Reason: 1
I modified that class a tiny bit - I just replaced a couple of the characters in the default sketch for the same amount of different ones, so that it is now this:
Code: [Select]

void setup()
{
 // This code will only run once, after each powerup or reset of board
 
}

void loop()
{
 // This code loops consecutively
 
}

Having the new lines is helpful. Yeah I know, I am too lazy to just press Enter, LOL!


I think I can live without the weird string about taking a walk!
~Tom~

eried


Thanks, that worked great. Just renamed pde.jar in the /lib/ folder to a zip, replaced the class file, and renamed it back. Worked a treat!


Cool, you can edit the template with an hex editor :)
My website: http://ried.cl

eried


I modified that class a tiny bit - I just replaced a couple of the characters in the default sketch for the same amount of different ones, so that it is now this:
Code: [Select]

void setup()
{
 // This code will only run once, after each powerup or reset of board
 
}

void loop()
{
 // This code loops consecutively
 
}

Having the new lines is helpful. Yeah I know, I am too lazy to just press Enter, LOL!


I think I can live without the weird string about taking a walk!


:D hehe Walk needed after 26 sketches per day
My website: http://ried.cl

Tom Carpenter


Cool, you can edit the template with an hex editor :)


Perhaps. But in windows 7, you don't even need to extract the zip, you can just copy the new file directly into the zip folder, so it is just as easy.
~Tom~

Go Up