Rockbox Ports are now being developed for various digital audio players!
Or perhaps it would make more sense to explore the ADC and get the button specifics down?
GPIOA |= 0x4;GPIOA &= ~0x8;i=20; while (i--);if (GPIOA & 0x10) btn |= BUTTON_PLAY; /* up */if (GPIOA & 0x20) btn |= BUTTON_RIGHT;if (GPIOA & 0x40) btn |= BUTTON_LEFT;GPIOA |= 0x8;GPIOA &= ~0x4;i=20; while (i--);if (GPIOA & 0x10) btn |= BUTTON_VOL_UP;if (GPIOA & 0x20) btn |= BUTTON_VOL_DN;if (GPIOA & 0x40) btn |= BUTTON_AB; /* down */if (GPIOA & 0x100) btn |= BUTTON_MENU; /* power */if (GPIOA & 0x80) btn |= BUTTON_STOP; /* select */if (GPIOA & 0x2) btn |= BUTTON_HOLD;
AND R0, R0, #0x70
GPIOA |= 0x4;GPIOA &= ~0x8;
GPIOA |= 0x8;GPIOA &= ~0x4;
GPIOA_DIR |= 0xC
Have you managed to work out which pin (if any) is the backlight control?
Page created in 0.179 seconds with 21 queries.