void(* resetFunc) (void) = 0; //initialize the reset function void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: delay(5000); resetFunc(); //you can call this method to reset your arduino }
Monday, April 23, 2018
Reset Arduino by Code
The code on below shows how to initialize the reset function for arduino code and use it while coding.I had reset the arduino after 5000ms delay.
Happy birthday tone using arduino
Wednesday, April 18, 2018
Labeling in Latex
In LaTeX you can easily reference almost anything that is numbered (sections, figures, formulas), and LaTeX will take care of numbering, updating it whenever necessary. The commands to be used do not depend on what you are referencing.
ch : chapter sec : section subsec : subsection fig : figure tab : table eq : equation lst : code listing itm : enumerated list item alg : algorithm app : appendix subsection
\begin{figure}[H] \begin{center} \includegraphics[width=0.9\textwidth]{01_chapters/01/figs/exsample.jpg} \end{center} \caption{Image Caption} \label{fig:figure1} \end{figure} The figure can reference as figure \ref{fig:figure1} in the page \pageref{fig:figure1}
Tuesday, April 17, 2018
How to add table on Latex
you can use this code for add table in latex
\begin{table}[H] \caption{\textbf{Table caption}} \label{tb:sampletable} \begin{center} \begin{tabular}{|c|c|c|c|} \hline \textbf{Col 1} & \textbf{Col 2} & \textbf{Col 3} & \textbf{Col4} \\ \hline data 1 & data 2 & data 3 & data 4 \\ \hline data 1 & data 2 & data 3 & data 4 \\ \hline data 1 & data 2 & data 3 & data 4 \\ \hline \end{tabular} \end{center} \end{table}
Saturday, April 7, 2018
Wednesday, April 4, 2018
Intellij IDEA PHP Configuration with localhost
When you create PHP project you must host it to PHP enable host. Normally it uploaded to local host on computer which create by apachi. In the intellij idea no need to uplode every time that we change the project we can use the configaration setting to uplode it and load through browser.
Subscribe to:
Posts (Atom)