Pages: 1 [2]   Go Down
Author Topic: Change the Default sketch  (Read 1643 times)
0 Members and 1 Guest are viewing this topic.
Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-lol I changed the default sketch and published it as a mod:
http://arduino.cc/forum/index.php/topic,118440.0.html
Logged

My website: http://ried.cl

Leeds, UK
Offline Offline
Edison Member
*
Karma: 72
Posts: 1642
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

~Tom~

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)

* Base.class (37.85 KB - downloaded 2 times.)
Logged

My website: http://ried.cl

Leeds, UK
Offline Offline
Edison Member
*
Karma: 72
Posts: 1642
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

~Tom~

Leeds, UK
Offline Offline
Edison Member
*
Karma: 72
Posts: 1642
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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!

* Base.class (37.85 KB - downloaded 3 times.)
« Last Edit: August 13, 2012, 05:37:31 pm by Tom Carpenter » Logged

~Tom~

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

My website: http://ried.cl

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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!

smiley-grin hehe Walk needed after 26 sketches per day
Logged

My website: http://ried.cl

Leeds, UK
Offline Offline
Edison Member
*
Karma: 72
Posts: 1642
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, you can edit the template with an hex editor smiley

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.
Logged

~Tom~

Pages: 1 [2]   Go Up
Jump to: