Menu Interface: User Defined Functions

June 2, 2017

Introduction

Generally, while using Arduino one face problem of uploading different codes again and again as he changes some part of codes. Using evive’s user defined function submenu, the user can store different Arduino programs at once. He can switch to a different program while navigating inside the menu. Here is how to do it:

Creating a new User Defined Function

Note: The library name is changed from userDefinedFunctions.cpp to AddUserDefinedFunctions.cpp.
  • In Arduino IDE, the user will add his custom codes in space provided in file named AddUserDefinedFunctions.cpp in similar fashion to “void setup_user_defined_function(){….}” and “void loop_user_defined_function(){….}”.
User Define Functions
  • The user has to uncomment the desired user defined functions and give the desired name in AddUserDefinedFunctions.h.
  • Upload the program to evive using Arduino IDE via USB cable.
Selecting user defined function in menu
 
Selecting User Defined Function Blink

So the code will be available under the user defined menu list item. When the user will select that particular user defined function in the sub-menu of user defined function, the code will start running in a loop.

Note: All the libraries must be initialized in AdduserDefinedFunctions.cpp. In another way, the user just has to copy and paste the previous program in  AddUserDefinedFunctions.cpp.
Share this Documentation
Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Tutorials & Projects
Drip Irrigation System

Drip Irrigation System

In this project you will learn how to develop a mini drip irrigation system for your garden. It will help you water plants, shrubs, and trees in your garden with precision and ease.

How to interface water pump with evive?

This tutorial discusses how we can interface water pump with evive . How we can control the speed of water flow using the evive menu? How we can control the speed using potentiometer with a simple scratch code.All the answers are given in this tutorial.LET'S BEGIN....
Evive mini oscilloscope current sensing

Mini Oscilloscope

Introduction An oscilloscope is a type of electronic test instrument that allows observation of constantly…
evive Menu Interface

Menu Interface

Introduction The conventional way of using Arduino is by making a program in Arduino IDE…
Featured Projects

Leave a Reply