Getting started guide for Raspberry Pi and Arduino using Wyliodrin

Page 199

198

VISUAL PROGRAMMING

Figure 127: analogWrite Block Sets a value between 0 and 255 on the pin. analogRead (Figure 128):

Figure 128: analogRead Block Reads a value between 0 and 1023 from the pin. digitalRead (Figure 129):

Figure 129: digitalRead Block Reads a value from one of the digital pins and returns 0 or 1.

digitalWrite (Figure 130):

Figure 130: digitalWrite Block


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.