wasp-os: MicroPython for PineTime!
#90
(12-07-2020, 05:25 AM)danielt Wrote: To be honest I've never seen the simulator unreactive to these things. There are a couple of ways a broken application could cause this but you've done a fresh clone and the built-in applications are unlikely to cause this.

Either way I'd recommend starting by adding a couple of prints:

1. Check the lowest level of the simulator is correctly handling events by printing event here: https://github.com/daniel-thompson/wasp-...ay.py#L221
2. Check wasp-os is handling interrupts from the (simulated) touch screen by printing dbuf here: https://github.com/daniel-thompson/wasp-...ay.py#L105

After that follow where the prints lead and add further prints further through the stack to zoom in. If you need to learn more about the structure of wasp-os you might be able to use traceback.print_tb or pdb.set_trace from critical bits of code (the former prints a stack trace, the later enters a text mode debugger allowing you to explore dynamically)... or you can just ask here once you have gathered more evidence!

1. Gives back <sdl2.events.SDL_Event object at 0x.....
2. Gives back bytearray(b'\x03\...

Now, I realized that the simulator seems to be working -- it tells me "volume down" (for the mock music app), for example -- but not updating the simulator display (the time does not change either, for example). I'm a bit overwhelmed by deciding where to look next. What I've been doing is removing the dependencies of the simulator (requirements.txt) via pip and installing them via my distro's package manager, which my distro's wiki says is the preferred way to install python packages. The point being, this looks like a sdl-related problem if I understand correctly, and well, I have very little experience with that. Oh and the simulator's stdout tells that it does in fact refresh (I put a print there), and a lot so. What would you do next? Thanks for the advice so far!


Messages In This Thread
wasp-os: MicroPython for PineTime! - by danielt - 02-04-2020, 01:43 PM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 09:31 AM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 10:45 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 03-06-2020, 04:02 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 04-13-2020, 09:46 PM
RE: wasp-os: MicroPython for PineTime! - by tllim - 04-20-2020, 11:47 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 05-28-2020, 01:59 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 07-15-2020, 07:01 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 06-03-2020, 05:38 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-15-2020, 07:08 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 02:43 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 03:53 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 08-02-2020, 03:55 AM
RE: wasp-os: MicroPython for PineTime! - by Igor7 - 10-11-2020, 07:27 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-15-2020, 06:39 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-24-2020, 01:56 PM
RE: wasp-os: MicroPython for PineTime! - by purlupar - 12-07-2020, 07:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Develop a new firmware for PineTime belushi 2 1,382 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 560 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 746 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,161 05-06-2023, 02:15 PM
Last Post: lcj
  Send a message from Android to pinetime via BLE razrosman 0 955 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,132 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 1,697 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,595 03-20-2022, 08:58 PM
Last Post: jandy
  "Pine64 USB JTAG Adapter + OpenOCD + PineTime" should it work? ITCactus 4 4,041 03-02-2022, 05:58 AM
Last Post: wibble
  Zephyr based Pinetime jandy 4 4,788 11-11-2021, 05:53 AM
Last Post: jandy

Forum Jump:


Users browsing this thread: 4 Guest(s)