
Type Crtl-X, Y (for yes), and Enter to save.At the bottom of all of the hashtagged text, input the sudo python (TYPE IN THE LOCATION OF YOUR CRYPTOTICKER.PY FILE).

Open the terminal and type the following:.(Example: /home/pi/Desktop/CryptoTicker.py) First, note the location of the CryptoTicker.py file.Use a phillips screwdriver on the little blue box on the back of the I2C unit to adjust the contrast of your screen. This is also a great time to adjust your contrast.If your message comes up, Congratulations! your LCD is ready to use.Press "F5" to save and run your python code.Mylcd.lcd_display_string("Hello World!", 1) Enter the following: import I2C_LCD_driverfrom time import *.Let's write "Hello World!" to the display.Using the example, line 22 would be changed to: "ADDRESS = 0x21" On line 22, enter your I2C address that we found in the "Install Necessary Components" section.On line 19, you will want to change "I2CBUS = 0" to "I2CBUS = 1".Copy this code from GitHub user DenisFromHR ( link) and save it in a file named "I2C_LCD_driver.py".Take note of your number, you will need it later. In the example, the I2C address is "21".This will show show you a table of devices connected to your pi ( link).
#Create your cryptocurrency ticker install#
Wait for the install to complete then enter:.The LCD screen should light up but nothing will be displayed. Once you have double and triple checked your connections, solder the jumper cables to you Raspberry Pi.Pi Pins->LCD Pins GPIO 8 -> SDA GPIO 9 -> SCL 5.0 VDC (either output) ->VCC Ground (any output) -> GND Attach jumper cables using the following (Raspberry Pi Zero W pin out ):.Shutdown and unplug your Pi (wait for the activity LED to stop flashing before unplugging).

