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 google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Tutorials & Projects
Smartphone Controlled Plant Watering 600px

Wirelessly Controlled Drip Irrigation System

In this project, you will control the drip irrigation system wirelessly using your smartphone. By using Bluetooth module and evive you will control the water-pump and thus be watering the plants.

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…
All articles loaded
No more articles to load
Featured Projects
Arcade-Basketball-Game

DIY Arcade Basketball Game

Introduction“We don’t stop playing because we grow old; we grow old because we stop playing.”…
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart