Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ht1632.h
00001 /* 00002 * Header for Holtek ht1632 LED driver 00003 */ 00004 00005 /* Original Nov, 2008 by Bill Westfield */ 00006 00007 00008 #define ID_CMD 4 /* ID = 100 - Commands */ 00009 #define ID_RD 6 /* ID = 110 - Read RAM */ 00010 #define ID_WR 5 /* ID = 101 - Write RAM */ 00011 00012 #define CMD_SYSDIS 0x00 /* CMD= 0000-0000-x Turn off oscil */ 00013 #define CMD_SYSON 0x01 /* CMD= 0000-0001-x Enable system oscil */ 00014 #define CMD_LEDOFF 0x02 /* CMD= 0000-0010-x LED duty cycle gen off */ 00015 #define CMD_LEDON 0x03 /* CMD= 0000-0011-x LEDs ON */ 00016 #define CMD_BLOFF 0x08 /* CMD= 0000-1000-x Blink ON */ 00017 #define CMD_BLON 0x09 /* CMD= 0000-1001-x Blink Off */ 00018 #define CMD_SLVMD 0x10 /* CMD= 0001-00xx-x Slave Mode */ 00019 #define CMD_MSTMD 0x14 /* CMD= 0001-01xx-x Master Mode */ 00020 #define CMD_RCCLK 0x18 /* CMD= 0001-10xx-x Use on-chip clock */ 00021 #define CMD_EXTCLK 0x1C /* CMD= 0001-11xx-x Use external clock */ 00022 #define CMD_COMS00 0x20 /* CMD= 0010-ABxx-x commons options */ 00023 #define CMD_COMS01 0x24 /* CMD= 0010-ABxx-x commons options */ 00024 #define CMD_COMS10 0x28 /* CMD= 0010-ABxx-x commons options */ 00025 #define CMD_COMS11 0x2C /* CMD= 0010-ABxx-x commons options */ 00026 #define CMD_PWM 0xA0 /* CMD= 101x-PPPP-x PWM duty cycle */ 00027
Generated on Sun Jul 17 2022 15:03:58 by
1.7.2