wasp-os: MicroPython for PineTime!
#76
(10-19-2020, 02:11 PM)danielt Wrote:
(10-19-2020, 05:24 AM)purlupar Wrote: This sounds exactly right! I understand you should add me as a collaborator so that I can create a branch. My github username is purlupar.

There's not usually any admin needed from my side ahead of time.

Basically if you fork the wasp-os repo, add your app to the repo and get the app hooked up on the simulator and commit then you're pretty much there. At that point it's just a pull request away: https://docs.github.com/en/free-pro-team...rom-a-fork .

I see -- done that now. Exciting. :-)

Now, I can't succeed to get it running on the simulator or the watch, which is why I originally posted here (2 or 3 posts above this). This happens in the simulator:


Code:
>>> from apps.chrono import ChronoApp
>>> wasp.system.register(ChronoApp())
>>> wasp.system.run()
Watch is running, use Ctrl-C to stop
PWM.__init__(0, <machine.Pin object at 0x7fafe8eae160>) {'freq': 'FREQ_16MHZ', 'duty': 25, 'period': 16000}
PWM.init() {}
PWM.deinit() {}
MOTOR: set on
Traceback (most recent call last):
  File "/home/david/PineTime/wasp-os/wasp/wasp.py", line 389, in run
    self._tick()
  File "/home/david/PineTime/wasp-os/wasp/wasp.py", line 349, in _tick
    self._handle_touch(event)
  File "/home/david/PineTime/wasp-os/wasp/wasp.py", line 319, in _handle_touch
    self.app.touch(event)
  File "/home/david/PineTime/wasp-os/wasp/apps/launcher.py", line 58, in touch
    wasp.system.switch(app)
  File "/home/david/PineTime/wasp-os/wasp/wasp.py", line 174, in switch
    app.foreground()
  File "/home/david/PineTime/wasp-os/wasp/apps/chrono.py", line 65, in foreground
    self.draw(effect)
  File "/home/david/PineTime/wasp-os/wasp/apps/chrono.py", line 166, in draw
    self.ringM()
  File "/home/david/PineTime/wasp-os/wasp/apps/chrono.py", line 130, in ringM
    self.mark((120, 120), gry, 50, 112, 1, 120, 5, 0, 600)
  File "/home/david/PineTime/wasp-os/wasp/apps/chrono.py", line 88, in mark
    d.fill(c, int(z[0]+co*p-w//2), int(z[1]+si*p-w//2), int(w), int(w))
  File "/home/david/PineTime/wasp-os/wasp/draw565.py", line 138, in fill
    display.set_window(x, y, w, h)
  File "/home/david/PineTime/wasp-os/wasp/drivers/st7789.py", line 131, in set_window
    self.write_data(bytearray([y >> 8, y & 0xff, yp >> 8, yp & 0xff]))
ValueError: byte must be in range(0, 256)


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 purlupar - 10-20-2020, 03:18 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-24-2020, 01:56 PM

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

Forum Jump:


Users browsing this thread: 2 Guest(s)