Skip to main content

Posts

Showing posts from 2017

Multi thread your Arduino

I am searching for multi-threading or parallel programming with Arduino. I have to operate two loops, the second loop has to start after the first one completes its 1/3rd process. i googled and found that the usage of the millis() function in Arduino instead of using delay() function. if you search for multi-thread in Arduino you will get that simple LED Blink tutorial for how to use this millis() code instead of delay() which is very easy. So if you want to learn some basics then go and google it.  before we start i am just beginner in Arduino i just know how to make for loop nad functions! in this blog, I am going to demonstrate how to use that millions() function for making time delay between different operations. as I said earlier I have to make a program in which there is two loop or operation in which second loop or operation starts after some time T and the first one starts immediately after starting the programme. to keep this programme simple I have taken 2 servos

Compile Custom Rom From Source

Compiling custom rom from source code. Compiling custom rom takes a hell lot of time!!!! so be aware of That! First things first you have to setup system to start compiling. you have to be on Ubuntu Os. You can use virtual box or dual boot with windows(the best option) System requirements for fastest compilation are as below: Important minimum 8GB of RAM ( you're compiling rom based on Marshmallow or Nougat) 100GB of free Space on HDD (it is good to have a SSD). Quad Core processor. A good internet connection with unlimited data yeah that's it! my suggestion is that you have to install Ubuntu alongside you system means dual boot! (why ? ask yourself!). now, I am assuming that you have installed and boot up in Ubuntu. So let's Get Started! Step 1 :- install JAVA (open jdk 8) in Ubuntu. open up the terminal and type the following command and hit enter. $ sudo apt-get install openjdk-8-jdk Step 2 :- Install other packages