Difference between revisions of "Q100"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
==Overview== | ==Overview== | ||
− | == | + | ==PIN OUT== |
+ | {| class="wikitable" | ||
+ | ! PIN !! Raspberry Pi Interface (BCM) !! Description | ||
+ | |- | ||
+ | | SCLK || P11/SCLK || SPI clock line | ||
+ | |- | ||
+ | | MOSI || P10/MOS || SPI data line | ||
+ | |- | ||
+ | | CS || P8/CE0 || Chip selection | ||
+ | |- | ||
+ | | DC || P25 || Data/Command control | ||
+ | |- | ||
+ | | RST || NOT USE || Reset | ||
+ | |- | ||
+ | | BL || P27 || Backlight | ||
+ | |} | ||
==Packing List== | ==Packing List== |
Revision as of 19:28, 14 March 2024
Contents
Overview
PIN OUT
PIN | Raspberry Pi Interface (BCM) | Description |
---|---|---|
SCLK | P11/SCLK | SPI clock line |
MOSI | P10/MOS | SPI data line |
CS | P8/CE0 | Chip selection |
DC | P25 | Data/Command control |
RST | NOT USE | Reset |
BL | P27 | Backlight |
Packing List
User Manual
Enable SPI interface
Reter to How to enable SPI
sudo raspi-config Choose Interfacing Options -> SPI -> Yes to enable SPI interface
Install lgpio liberery
PS: If you use the bookworm system, you can only use lgpio library, bcm2835 and wiringPi can't be installed and used
#Open the Raspberry Pi terminal and run the following command wget https://github.com/joan2937/lg/archive/master.zip unzip master.zip cd lg-master sudo make install # You can refer to the official website for more: https://github.com/gpiozero/lg
Install Python
sudo apt-get update sudo apt-get install python3-pip sudo apt-get install python3-pil sudo apt-get install python3-numpy sudo pip3 install spidev
Download Examples
Open the Raspberry Pi terminal and run the following command:
sudo apt-get install p7zip-full -y wget https://sourceforge.net/projects/u-geek/files/HATs//Raspi_M2_HAT/Raspi_M2_HAT_code.7z 7z x Raspi_M2_HAT_code.7z -r -o./Raspi_M2_HAT_code sudo chmod 777 -R Raspi_M2_HAT_code cd Raspi_M2_HAT_code
Run the demo:
sudo python stats.py
Enable comment auto-refresher
Anonymous user #1
Permalink |