Coding with android device.

Community contributed apps
Post Reply
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Coding with android device.

Post by Ademster »

Anyone know if it is possible to write/generate code using lets say my samsung note tablet.. then save the file and us a computer to upload to the controller?

Thanks in advance.

Posted by: Galaxy Note Tablet.
Adam
58 Gal
Image
modulok
Posts: 166
Joined: Wed Oct 24, 2012 8:37 am

Re: Coding with android device.

Post by modulok »

Can't upload code without the cable.
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: Coding with android device.

Post by Ademster »

I know I wouldnt be able to upload it to the controller
Just seeing if there is a program out there that will allow me to write the code on an android device.

Posted by: Galaxy Note Tablet.
Adam
58 Gal
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Coding with android device.

Post by lnevo »

I don't use Android, but any text editor should work to modify the ino/pde file and then you could use dropbox or something to transer it to the machine where you will upload...
modulok
Posts: 166
Joined: Wed Oct 24, 2012 8:37 am

Re: Coding with android device.

Post by modulok »

I did a quick search for Arduino on the market and there were a bunch of apps. I would try some and maybe one has a nice editor that will color code and make the code look a little better than a standard text file.

If you find a good one, let us know.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Coding with android device.

Post by rimai »

This may work for you:
http://codebender.cc/
You can even compile online :)
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Coding with android device.

Post by lnevo »

Cool site!!!

I converted the ReefAngel libraries and adjusted all the includes. However, I'm getting a compile error though, wondering if you can point me in the right direction....

NokiaLCD.cpp:248:8: error: cast from pointer to smaller type 'uint16_t' (aka 'unsigned short') loses information
c = pgm_read_byte_near(font + j);

I had a similar error in mmc.cpp but when I changed the board to Arduino Mega 2560 it switched to the NokiaLCD.cpp :(
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Coding with android device.

Post by rimai »

To be honest, I have not tried it yet.
One thing is for sure. Because the codebender doesn't have the auto features detection, you need to manually create the ReefAngel_Features.h file.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Coding with android device.

Post by lnevo »

Also, since it also doesnt support libraries i had to convert everything into one folder structure...convert the <> into "" for all includes and turn it all into a zip to upload...i think if we can fix the data type issue it would verify.

As far as the features file, it was wrapped up in the whole package i uploaded.

I also had to copy Wire.h and Wire.cpp even though they supposedly support that lib..i'm probably doing something wrong there...
Post Reply