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.
Dependencies: EthernetNetIf mbed
ht1632.h@0:3011998ebd3e, 2011-09-28 (annotated)
- Committer:
- rafacherin
- Date:
- Wed Sep 28 07:59:14 2011 +0000
- Revision:
- 0:3011998ebd3e
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rafacherin | 0:3011998ebd3e | 1 | /* |
rafacherin | 0:3011998ebd3e | 2 | * Header for Holtek ht1632 LED driver |
rafacherin | 0:3011998ebd3e | 3 | */ |
rafacherin | 0:3011998ebd3e | 4 | |
rafacherin | 0:3011998ebd3e | 5 | /* Original Nov, 2008 by Bill Westfield */ |
rafacherin | 0:3011998ebd3e | 6 | |
rafacherin | 0:3011998ebd3e | 7 | |
rafacherin | 0:3011998ebd3e | 8 | #define ID_CMD 4 /* ID = 100 - Commands */ |
rafacherin | 0:3011998ebd3e | 9 | #define ID_RD 6 /* ID = 110 - Read RAM */ |
rafacherin | 0:3011998ebd3e | 10 | #define ID_WR 5 /* ID = 101 - Write RAM */ |
rafacherin | 0:3011998ebd3e | 11 | |
rafacherin | 0:3011998ebd3e | 12 | #define CMD_SYSDIS 0x00 /* CMD= 0000-0000-x Turn off oscil */ |
rafacherin | 0:3011998ebd3e | 13 | #define CMD_SYSON 0x01 /* CMD= 0000-0001-x Enable system oscil */ |
rafacherin | 0:3011998ebd3e | 14 | #define CMD_LEDOFF 0x02 /* CMD= 0000-0010-x LED duty cycle gen off */ |
rafacherin | 0:3011998ebd3e | 15 | #define CMD_LEDON 0x03 /* CMD= 0000-0011-x LEDs ON */ |
rafacherin | 0:3011998ebd3e | 16 | #define CMD_BLOFF 0x08 /* CMD= 0000-1000-x Blink ON */ |
rafacherin | 0:3011998ebd3e | 17 | #define CMD_BLON 0x09 /* CMD= 0000-1001-x Blink Off */ |
rafacherin | 0:3011998ebd3e | 18 | #define CMD_SLVMD 0x10 /* CMD= 0001-00xx-x Slave Mode */ |
rafacherin | 0:3011998ebd3e | 19 | #define CMD_MSTMD 0x14 /* CMD= 0001-01xx-x Master Mode */ |
rafacherin | 0:3011998ebd3e | 20 | #define CMD_RCCLK 0x18 /* CMD= 0001-10xx-x Use on-chip clock */ |
rafacherin | 0:3011998ebd3e | 21 | #define CMD_EXTCLK 0x1C /* CMD= 0001-11xx-x Use external clock */ |
rafacherin | 0:3011998ebd3e | 22 | #define CMD_COMS00 0x20 /* CMD= 0010-ABxx-x commons options */ |
rafacherin | 0:3011998ebd3e | 23 | #define CMD_COMS01 0x24 /* CMD= 0010-ABxx-x commons options */ |
rafacherin | 0:3011998ebd3e | 24 | #define CMD_COMS10 0x28 /* CMD= 0010-ABxx-x commons options */ |
rafacherin | 0:3011998ebd3e | 25 | #define CMD_COMS11 0x2C /* CMD= 0010-ABxx-x commons options */ |
rafacherin | 0:3011998ebd3e | 26 | #define CMD_PWM 0xA0 /* CMD= 101x-PPPP-x PWM duty cycle */ |
rafacherin | 0:3011998ebd3e | 27 |