รถเข็นของคุณว่างเปล่า!
Displaying Telegram Message on Dot Matrix Using Raspberry Pi
- Idris Zainal Abidin
- 28 Nov 2018
- 718
INTRODUCTION
Continue from the previous tutorial Displaying On MAX7219 Dot Matrix Using Raspberry Pi. In this video we will show you how to display Telegram message on 4 In 1 MAX7219 Dot Matrix Display Module Using Raspberry Pi.
VIDEO
In this video we will show you how to display Telegram message on 4 In 1 MAX7219 Dot Matrix Display Module Using Raspberry Pi.
HARDWARE PREPARATION
Wiring Connections
4 In 1 MAX7219 Dot Matrix Display Module | Maker pHAT |
VCC | 5V |
GND | GND |
DIN | MOSI |
CS | CE0 |
CLK | SCK |
Software Preparation
Install Telegram Bot library for Python. Open Terminal and write following command.
sudo apt-get install python-pip
sudo pip install telepot
Sample Code
Write this code to display Telegram message on dot matrix. Please edit and put your Telegram Bot token in the code.
[gist https://gist.github.com/IdrisCytron/03423782af34fe31f51aa59efd05c3a2/]
Thank you
References
- Luma.LED_Matrix, credit to Richard Hull.
- Telegram Bot Python Library
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.