Page 1 of 1
Coding with android device.
Posted: Wed Jan 23, 2013 9:27 pm
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.
Re: Coding with android device.
Posted: Thu Jan 24, 2013 7:00 am
by modulok
Can't upload code without the cable.
Re: Coding with android device.
Posted: Thu Jan 24, 2013 7:30 am
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.
Re: Coding with android device.
Posted: Thu Jan 24, 2013 9:04 am
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...
Re: Coding with android device.
Posted: Thu Jan 24, 2013 9:09 am
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.
Re: Coding with android device.
Posted: Thu Jan 24, 2013 9:38 am
by rimai
This may work for you:
http://codebender.cc/
You can even compile online

Re: Coding with android device.
Posted: Thu Jan 24, 2013 1:04 pm
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

Re: Coding with android device.
Posted: Thu Jan 24, 2013 3:28 pm
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.
Coding with android device.
Posted: Thu Jan 24, 2013 3:40 pm
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...