diff options
| author | tmk <nobody@nowhere> | 2010-08-23 15:46:24 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2010-08-23 23:11:14 +0900 |
| commit | 3b31337cd8a5fe8b02924f2056ad2648a028c563 (patch) | |
| tree | 060cc2413f74f89c957655d3fe954ac58c3ae42d /print.c | |
| parent | c17f07819ffeb119a09d4acdfa5097b272d2e2f9 (diff) | |
| download | qmk_firmware-3b31337cd8a5fe8b02924f2056ad2648a028c563.tar.gz qmk_firmware-3b31337cd8a5fe8b02924f2056ad2648a028c563.zip | |
perform nomal keyboard behavior. It works now!!!
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -60,7 +60,14 @@ void phex16(unsigned int i) | |||
| 60 | 60 | ||
| 61 | void pbin(unsigned char c) | 61 | void pbin(unsigned char c) |
| 62 | { | 62 | { |
| 63 | for (int i=7; i>=0; i--) { | 63 | for (int i = 7; i >= 0; i--) { |
| 64 | usb_debug_putchar((c & (1<<i)) ? '1' : '0'); | ||
| 65 | } | ||
| 66 | } | ||
| 67 | |||
| 68 | void pbin_reverse(unsigned char c) | ||
| 69 | { | ||
| 70 | for (int i = 0; i < 8; i++) { | ||
| 64 | usb_debug_putchar((c & (1<<i)) ? '1' : '0'); | 71 | usb_debug_putchar((c & (1<<i)) ? '1' : '0'); |
| 65 | } | 72 | } |
| 66 | } | 73 | } |
