sunnuntai 11. lokakuuta 2015

Every time you start a new project with your Lilypad or Arduino make sure your hardware works. This is done by running "Hello world" -app.

Open your Arduino IDE (see picture below). If you don't have Arduino IDE, get it here: https://www.arduino.cc/en/Main/Software. In case you are running Linux you might need extra elevation of rights (i.e. sudo su in Ubuntu) . Attach USB cable and Lilypad to your PC. Under Tools in Arduino IDE, you can check if the right Arduino/Lilypad model and port are chosen. Many times it happens your hardware seems not work. This is due to wrong hardware and port.

In Arduino IDE click File, Examples, Basics, Blink. Right after that, Save Blink somewhere else. Now, change the code. For example, reduce the blinking time from 1000 ms to 100 ms (see picture below; delay (1000). Finally, click an arrow which points to the right. It saves, compiles and sends the code over to Lilypad or Arduino. Thumbs up! Fingers crossed! If you are lucky you have your very first Lilypad app up and running!

Instructions say TWRP 2.8.7 (recovery tool) is needed. My version was older 2.8.6. There is TWRP Manager (root) in Play store. Thus it's easy to download and install the latest version of TWRP on your phone. See here: https://play.google.com/store/apps/details?id=com.jmz.soft.twrpmanager. I guess Nexus 4 needs to be rooted in order to make TWRP Manager work. You have to find out how to root Nexus 4 for yourself.

Android 6 and Google apps

I downloaded aosp_mako-ota-eng.franzd.zip (= Android 6) and gapps-mm-fix.zip (= Google apps). Using a file manager app it was easy see where inside my Nexus 4 those two zips were. TWRP manager was able to flash both zip-files (first Android 6 and after that Google apps). No help from PC was needed. No USB cables. Nexus 4 only.

First boot

It took some time before Android 6 showed up. First there was no carrier. After reboot I was able to make phone calls. So now I have Android 6 up and running! Look at the pic below.