Circuit

As shown in the following picture, the positive leg (long leg) of the LED is connected to pin number 21 of the GPIO, and the negative (short leg) is connected to the resistor, which is then connected to the ground (GND) pin of the GPIO. Once the connections are set up the ribbon cable can be used to connect to the GPIO connector on the Raspberry Pi simply.

Connections for components on the breadboard

Once the connections are set up correctly, and the Raspberry Pi has been updated with the appropriate libraries and Geth, the next step is to develop a simple, smart contract that expects a value. If the value provided to it is not what ...

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.