Page 69 - Programming the Photon Getting Started With the Internet of Things
P. 69

count==10) {count =0;
        delay(1000);}}


        Some  users  tend  to  put  space  between  everything,  and  others  try  to  create  a  more
        streamlined format—either way it doesn’t matter; the compiler will still read the code in
        the way it is intended to.


        int count = 0;

        int count=0;



        Summary


        I know that some of you just want to get down to the nitty gritty of the Photon, but it is
        important to understand the basic concepts of programming the Photon board. This has

        largely been a theoretical chapter. You have learned how to write your firmware so that it
        is  easy  to  read  and  understand,  as  well  as  adopted  the  Arduino  style  of  programming
        language, which will save you a lot of time and effort when writing your own firmware for
        the Photon.


             In  this  next  chapter  we  will  look  at  programming  some  electronics  using  output
        devices such as LEDs, motors, and servos for both analog and digital circuits.
   64   65   66   67   68   69   70   71   72   73   74