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

ID:

           for Photon device, 15

           tokens in device security, 91–92

           viewing Photon ID, 25


        IDEs (integrated development environments):

           OpenOCD and WICED, 118

           Particle. See Particle Build

        if statement:

           reference to Particle code, 160

           syntax of, 38–39

           use of Booleans with, 36–37


        IFTTT (“if this then that”):

           e-mail alert application of, 126–133

           overview of, 125–126

           summary, 139

           Twitter alert application of, 133–139


        #include statement, adding libraries, 103

        Indentation, coding best practices, 43

        Inputs:

           analog, 76–77

           analogRead(), 79–80


           debouncing, 74–76

           digital, 69–73

           digitalRead(), 73–74

           header pin for, 10

           overview of, 69


           reading analog sensor (potentiometer), 77–79

           scaling ranges using map(), 80–81

           summary, 86

           use of variable resistors, 81
   206   207   208   209   210   211   212   213   214   215   216