* LED segment display: drivers/tm1637.c [COMPLETED]
* Temperature sensor: drivers/tsensor.c [COMPLETED]
* OLED display [PLANNED]
- * Joystick: drivers/mk450_joystick.c [IN PROGRESS]
+ * Joystick: drivers/mk450_joystick.c [COMPLETED]
+ * TFT Screen: [PLANNED]
* Memory Management [IN PROGRESS] -- FILE: lib/pool.c
* User Mode [PLANNED]
* System Call PendV implementation [PLANNED]
/* Y return values is
* ~0xC1C mv means y is idle state
- * ~0x0 far left
- * ~0xFFF far right */
+ * ~0x0 far up
+ * ~0xFFF far down */
uint16_t mk450_gety() {
int y = xyvalues[1];
return y;
}
-/* X return values (see y) */
+/* X return values (see y)
+ * Far right: 0xFFF
+ * Far left: 0x0 */
uint16_t mk450_getx() {
int x = xyvalues[0];
} */
// Simple LED blink
- //uint32_t curr = *RTC_CNTL;
- //int even = *RTC_CNTL % 2;
- //(!even) ? led_off() : led_on();
+ uint32_t curr = *RTC_CNTL;
+ int even = *RTC_CNTL % 2;
+ (!even) ? led_off() : led_on();
- printf("X: %x\n", mk450_getx());
- printf("Y: %x\n", mk450_gety());
+ // Double Axis Joystick
+ //printf("X: %x\n", mk450_getx());
+ //printf("Y: %x\n", mk450_gety());
rclrbit(RTC_CRL, 0); /* clear interrupt flag */
}