perform nomal keyboard behavior. It works now!!!
This commit is contained in:
parent
c17f07819f
commit
3b31337cd8
9 changed files with 327 additions and 201 deletions
9
print.c
9
print.c
|
@ -60,7 +60,14 @@ void phex16(unsigned int i)
|
|||
|
||||
void pbin(unsigned char c)
|
||||
{
|
||||
for (int i=7; i>=0; i--) {
|
||||
for (int i = 7; i >= 0; i--) {
|
||||
usb_debug_putchar((c & (1<<i)) ? '1' : '0');
|
||||
}
|
||||
}
|
||||
|
||||
void pbin_reverse(unsigned char c)
|
||||
{
|
||||
for (int i = 0; i < 8; i++) {
|
||||
usb_debug_putchar((c & (1<<i)) ? '1' : '0');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue