Made pixy_test screen working again. Had to disable pixy_service. Recalibrated initial touch values.

This commit is contained in:
t-moe
2015-06-03 23:40:19 +02:00
parent 16bfdade78
commit 74aa1867b5
4 changed files with 32 additions and 4 deletions

View File

@@ -264,7 +264,7 @@ static void enter(void* screen) {
n_led_powerlimit.max=40;
n_led_powerlimit.min =0;
n_led_powerlimit.callback=n_led_powerlimit_cb;
//gui_numupdown_add(&n_led_powerlimit);
gui_numupdown_add(&n_led_powerlimit);
@@ -283,7 +283,7 @@ static void leave(void* screen) {
gui_button_remove(&b_led_red);
gui_button_remove(&b_led_green);
gui_button_remove(&b_led_blue);
//gui_numupdown_remove(&n_led_powerlimit);
gui_numupdown_remove(&n_led_powerlimit);
}

View File

@@ -112,7 +112,10 @@ extern "C"
int pixy_service()
{
return interpreter.service();
//Service calls are commented at the moment because they cause problems with USB on the discovery.
//TODO: Fix problems.
return -1;
//return interpreter.service();
}
int pixy_command(const char *name, ...)

View File

@@ -103,7 +103,7 @@ void touch_test(uint16_t x, uint16_t y)
bool ll_touch_init()
{
touch_set_value_convert_mode(true); //Tell the touch module that we need converted values and display calibration
touch_set_calibration_values(0x0231, 0x0C08, 0x0287, 0x0B56); //set calibration values (copied from memory using the debugger)
touch_set_calibration_values(526, 2922, 588, 2736); //set calibration values (copied from memory using the debugger)
//We have a ADS7843 Touch controller

View File

@@ -0,0 +1,25 @@
break usbh_msc_core.c:243
commands
p state
bt
c
end
break usbh_msc_core.c:249
commands
c
end
break usbh_msc_core.c:214
commands
p state
bt
c
end
break usbh_msc_core.c:221
commands
c
end
break newlib_stubs.c:153
break newlib_stubs.c:158
commands
c
end