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

device modes, 142

           LEDs indicating board states, 8

        Local variables, using with input, 74

        Looking for the Internet mode, device modes, 142


        loop function:

           reference to Particle code, 157

           using with distance sensors, 107

           using with temperature sensors, 104

        Loops:

           in programming example, 32

           for statement, 39–40


           while statement, 40

        LOW state:

           reversing HIGH value and LOW value, 76


           switch control and, 69–70




        M

        Mac iOS. See iOS

        map(), scaling ranges using, 80–81


        Maxim DS18B20 digital temperature sensor, 101–105

        Microcontrollers, 1–2

        Motion detectors, measuring distance with HC-SR04 sensor, 105–109

        Motors:

           controlling servo motor, 64–67


           Grove vibration motor, 135–136

           servo motors compared with DC motors, 63–64

        Multimeters:

           measuring digital outputs, 48–50

           overview of, 147–148

           reading analog sensor (potentiometer), 77–79
   209   210   211   212   213   214   215   216   217   218   219