nopnop2002 / Raspberry-HT1621B

HT1621B Segment LED Example Code for RaspberryPi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry-HT1621B

HT1621B Segment LED Example Code for RaspberryPi

I ported from here.

Software requiment

  • WiringPi Library
    This project uses the wiringPiSetup() function to initialize GPIOs.
    If you use it on a board other than the RPI board, you may need to change the WiringPi number.
    As far as I know, there are these libraries.
    • WiringPi for OrangePi
    • WiringPi for BananaPi
    • WiringPi for NanoPi
    • WiringPi for Pine-64

Wireing

HT1621B RaspberryPi
DATA -- GPIO17(#11)
RW -- GPIO18(#12)
CS -- GPIO27(#13)
VCC -- 5V
GND -- GND

(*)You can change to other GPIO.

#define DATA 0
#define RW   1
#define CS   2

TS206

cc -o ts206 ts206.c -lwiringPi ts206-seg6

TS119

cc -o ts119 ts119.c -lwiringPi ts119-12

TS125

cc -o ts125 ts125.c -lwiringPi ts125-17

About

HT1621B Segment LED Example Code for RaspberryPi


Languages

Language:C 76.1%Language:C++ 23.9%