Made pixy_test screen working again. Had to disable pixy_service. Recalibrated initial touch values.
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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, ...)
|
||||
|
||||
@@ -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
|
||||
|
||||
25
discovery/utils/gdb_usb_breakpoints.script
Normal file
25
discovery/utils/gdb_usb_breakpoints.script
Normal 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
|
||||
Reference in New Issue
Block a user