Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/TM74Public

Arduino library for 4-Bit LED Digital Tube Module with two 74HC595D-chip

License

NotificationsYou must be signed in to change notification settings

0xF6/TM74

Repository files navigation

TM74 LED Driver

Arduino library for 4-Bit LED Digital Tube Module with two 74HC595D-chip

imageimage

Usage

// A0   A1   A2   5V  GND//  |    |    |    |   |// SCLK RCLK DIO  VCC GND// SCLK, RCLK and DIO - control pins for this module// VCC - 5V pin// GND - zero pin#include"TM74.h"#defineSCLK A0 #defineRCLK A1 #defineDIO  A2TM74disp(SCLK, RCLK, DIO);constuint8_t useDot =0x1;voidloop() {// fill segment dataconst Segment segs[4] = {Segment('1'),// 4 displaySegment('1'),// 3 displaySegment('2', useDot),// 2 display with enabled dot indicationSegment('3')// 1 display    };// send data to module    disp.writeSegments(segs,sizeof(segs) /sizeof(Segment));}

Symbols support for using in Segment

'0','1','2','3','4','5','6','7','8','9''A','b','C','d','E','F''°'// (degree)'-'// (minus)

Examples

/examples/time_display.ino - with using RTC module displaying current time on current display

Tested on

Arduino Due
Arduino Leonardo R3
Arduino Uno
Arduino nano
Iskra nano pro

About

Arduino library for 4-Bit LED Digital Tube Module with two 74HC595D-chip

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp