PhotoElectricChefs
  • Shifted
  • Home
  • FHM
  • Tutorials
    • Home Made PCB (DIY)
    • ARM Tutorials>
      • Introduction
      • The Arduino style of programming
      • C++ Programming
      • Implementation
      • Your First Program
      • Compiling & Uploading
      • STM STUDIO
      • Acknowledgements
    • AVR Tutorials>
      • Introduction
      • Getting Started
    • Arduino Tutorials>
      • Getting Started -Installation
      • Hello world Program - LED Blink
      • Button Interface - Digital Input
      • Fading LED - Analog output
      • Communication -Serial
      • Digital Voltmeter - Analog Input
  • Electronics -An Idea
    • Batteries
    • Voltage and Current dividers
  • Blog
  • Contact Us
  • Untitled

The Arduino style of programming

The arduino style of programming relies on the fact that the various libraries have already been compiled for the said processor in use. It also makes each function of the processor as a module so that they can be independently initialized and called to do their respective jobs.
The three main parts of the coding style are:
    1. Parameter Initialization.
    2. Setup function.
    3. Loop function.

This translates to the following example:


  1. #include //The header files if any
  2. int abcd; //The parameter initialization
  3. void setup()
  4. {
  5. // The setup function which runs only ONCE
  6. }
  7. void loop()
  8. {
  9. // The loop function which runs forever after the setup function has been executed.
  10. }
We shall see the usage of these in the Next sections.
Previous
Next
Powered by Create your own unique website with customizable templates.