Introduction: 1/3 How to EDIT and CREATE Blocks in Ardublock WITHOUT Eclipse 1/3

PART 1/3

Hi,
a lot of people are becoming crazy with the install of eclipse, maven, open block, etc. And all this for Ardublock.

I show you how to EDIT (2 ways) and CREATE blocks without the crazy world of eclipse.

EDIT

  1. download ce2.23 class editor

    http://sourceforge.net/projects/classeditor/files/...

  2. download HXD hex editor http://www.bleepingcomputer.com/download/hxd-hex-..
  3. download java editor

    http://javaeditor.org/doku.php

  4. download SOURCE CODE for ardublock (this we wil used for create blocks)

    https://github.com/taweili/ardublock https://github.com/taweili/ardublock

A . the fast way

Open ardublock with WINRAR and go to com\ardublock\translator\block\duinoedu

you see many .class files.

Drag and drop any class file OUT of ardublock example "Partie_Emetteur.class"

open Arduino with Ardublock and play sketch with Emetteur

1. now open ce2.23 folder and run ce.jar

2. In ce class editor open and find Partie_Emetteur.class

(out of ardublock)

3. TURN modifymode(Off) to (on) -up and right

4 go to Menu Constant Pool you will see all the parameter of class file.

You can do anything you want the file but becareful with the values , but for correct result

ONLY CHANGE string value utf8 type.

you have access to line 52,55,59,61,64,65 and other but dont touch them . Together work with arduino to view code and make change.

Let's add line in class file

example : go to line 55 Value : //libraries at http://www.duinoedu.com/

and add _#include _#include

total value : //libraries at http://www.duinoedu.com/ _#include <LCD.h>_#include <TFT.h>

modify (down button) save .

goto line 61 you see value (down) " ); " .

write );_Serial.begin(9600);

modify

goto line 65 you see value " ); "

change );_Serial.println("hack ardublock") ;

modify and save.

"Open HXD hex editor and load Partie_Emetteur.class file

Look carefully in right side for //libraries at http://duinoedu.com/ _#include

When you find do that :

The symbol "_" in RIGHT side has value in hex (left side ) 5F .

change 5F to 0A .That means next line "\n" you see symbol "." point at the right side

change and the other symbol "_" after .It will be RED.

do the same and for other 2

Save and exit .

Close arduino

Drag and drop the class file back to ardublock to the same directory .

open arduino and ardublock .Make sketch in ardublock with Emetteur

finished first way.

Step 1:

Hi,
a lot of people are becoming crazy with the install of eclipse, maven, open block, etc. And all this for Ardublock.

I show you how to EDIT (2 ways) and CREATE blocks without the crazy world of eclipse.

EDIT

download ce2.23 class editor http://sourceforge.net/projects/classeditor/files...

download HXD hex editor http://sourceforge.net/projects/classeditor/files...

java editor http://sourceforge.net/projects/classeditor/files...

download SOURCE CODE for ardublock (this we wil used for create blocks) http://sourceforge.net/projects/classeditor/files... http://sourceforge.net/projects/classeditor/files...

Step 2:

A . the fast way

Open ardublock with WINRAR and go to com\ardublock\translator\block\duinoedu
you see many .class files.

Drag and drop any class file OUT of ardublock example "Partie_Emetteur.class"

Step 3:

1. now open ce2.23 folder and run ce.jar
2. In ce class editor open and find Partie_Emetteur.class (out of ardublock)

3. TURN modifymode(Off) to (on) -up and right

Step 4:

4 go to Menu Constant Pool you will see all the parameter of class file.
You can do anything you want the file but becareful with the values , but for correct result ONLY CHANGE string value utf8 type.

you have access to line 52,55,59,61,64,65 and other but dont touch them . Together work with arduino to view code and make change.

Step 5:

Let's add line in class file
example : go to line 55 Value : //libraries at http://www.duinoedu.com/ and add _#include < LCD.h>_#include

total value : //libraries at http://www.duinoedu.com/ _#include <LCD.h> _#include <TFT.h>

modify (down button) and save .

Step 6:

goto line 61 you see value (down) " ); " .
write );_Serial.begin(9600);

modify

Step 7:

goto line 65 you see value " ); "
change );_Serial.println("hack ardublock") ;

modify and save.

Step 8:

"Open HXD hex editor and load Partie_Emetteur.class file
Look carefully in right side for " //libraries at http://duinoedu.com/ _#include etc.... "

When you find do that : The symbol "_" in RIGHT side has value in hex (left side ) 5F . change 5F to 0A .

That means next line "\n" , you see symbol "." point at the right . Change and the other symbol "_" after <LCD.h>, It will be RED.

Do the same and for other 2

Save and exit .

Step 9:

Close arduino
Drag and drop the class file back to ardublock to the same directory . open arduino and ardublock .Make sketch in ardublock with Emetteur

finished first way.