Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
74HC595 is a high-speed CMOS 8-bit 3-state shift register/output latch chip, using CMOS silicon gate technology. The device contains an 8-bit serial input and parallel output shift register and provides an 8-bit D-type storage register with an 8-bit 3-state output. Provide independent clock signals to the shift register and storage register. The shift register has a direct clearing function, serial input and output functions, and cascade applications. (Using standard pins.) Both shift registers and storage registers use a positive Edge clock trigger, if these two clocks are connected together, the shift register is always the previous clock pulse of the storage register. All input ports are equipped with anti-static and instant overvoltage protection circuits
Digits:4
LED color: red
Circuit connection type: Negative
Display size: 0.4inch
Please take care of the direction when you connect Pico, an USB port is printed to indicate . You can also check the pin of Pico and the LCD board when connecting.
You can connect display according to the table.
LCD | Pico | Description |
VCC | VSYS | Power input |
GND | GND | GND |
DIN | GP11 | Serial data input |
CLK | GP10 | Data input clock pin |
RCLK | GP9 | Output latch register clock pin |
Please refer to Raspberry Pi's guide: https://www.raspberrypi.org/documentation/rp2040/getting-started/
1. Open a terminal of Raspberry Pi
sudo apt-get install p7zip-full cd ~ sudo wget https://www.waveshare.net/w/upload/2/28/Pico_code.7z 7z x Pico_code.7z -o./Pico_code cd ~/Pico_code cd c/build/
cd ~/Pico_code/c/
cd build export PICO_SDK_PATH=../../pico-sdk
cmake .. make -j9
1. Refer to Raspberry Pi's guides to setup Micropython firmware for Pico
2. Open the Thonny IDE, and drag the demo to IDE and run on Pico.
3. Click File -> Open... and choose the Pico-8SEG-LED.py file to run
In DEV_Config.c(.h) file (...\c\lib\Config)
#define UBYTE uint8_t #define UWORD uint16_t #define UDOUBLE uint32_t
void DEV_Module_Init(void); void DEV_Module_Exit(void); Note: 1.These are functions which are used for handle GPIO:
void DEV_Digital_Write(UWORD Pin, UBYTE Value); UBYTE DEV_Digital_Read(UWORD Pin);
void DEV_SPI_WriteByte(UBYTE Value);