PineTime display and micropython
#1
Just wondered if anyone has got the display going from MicroPython.

So far I've spent most of my time on PineTime hacking together a bootloader robust enough to allow me to stick the back on (albeit with something I could undo in an emergency). Nothing too fancy... just getting the bootloader and app cooperate to turn the user button into a watchdog enforced long press reset button.

I've been using MicroPython with a BLE REPL as a test payload and the next step is to get something on the display so I just wondered if someone is ahead of me there and already has this going in Python? Once the back is on I'd like to at least see the time!
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#2
This looks great, I had no idea we could use Python for this kind of project.
I'll certainly start tinkering with this as soon as I have the time.
I'd love to see any examples of your work you may have.
#3
(01-19-2020, 04:11 AM)danielt Wrote: Just wondered if anyone has got the display going from MicroPython.

So far I've spent most of my time on PineTime hacking together a bootloader robust enough to allow me to stick the back on (albeit with something I could undo in an emergency). Nothing too fancy... just getting the bootloader and app cooperate to turn the user button into a watchdog enforced long press reset button.

I've been using MicroPython with a BLE REPL as a test payload and the next step is to get something on the display so I just wondered if someone is ahead of me there and already has this going in Python? Once the back is on I'd like to at least see the time!

Hi Danielt,

I found this project https://github.com/devbis/st7789_mpy
but not tested for the moment since I would like to have a bootloader to test before.

Could you please provide your bootloader to test ?

I also found some information from Hynitrion about the touch screen, please see in this Zip file : https://wiki.pine64.org/images/2/2f/CST816S.zip

If I have a way to test I think I could help you.

BR,
Memiks
#4
(01-19-2020, 06:05 PM)Memiks Wrote:
(01-19-2020, 04:11 AM)danielt Wrote: Just wondered if anyone has got the display going from MicroPython.

So far I've spent most of my time on PineTime hacking together a bootloader robust enough to allow me to stick the back on (albeit with something I could undo in an emergency). Nothing too fancy... just getting the bootloader and app cooperate to turn the user button into a watchdog enforced long press reset button.

I've been using MicroPython with a BLE REPL as a test payload and the next step is to get something on the display so I just wondered if someone is ahead of me there and already has this going in Python? Once the back is on I'd like to at least see the time!

I found this project https://github.com/devbis/st7789_mpy
but not tested for the moment since I would like to have a bootloader to test before.

Could you please provide your bootloader to test ?

My work to date can be found at https://github.com/daniel-thompson/wasp-os (the bootloader and micropython are both submodules which you can look at independently if you prefer). Having said that there's no documentation at this point... I'm still focused on getting the time to display (given this the device is a watch and all that).
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#5
(01-20-2020, 03:49 AM)danielt Wrote:
(01-19-2020, 06:05 PM)Memiks Wrote:
(01-19-2020, 04:11 AM)danielt Wrote: Just wondered if anyone has got the display going from MicroPython.

So far I've spent most of my time on PineTime hacking together a bootloader robust enough to allow me to stick the back on (albeit with something I could undo in an emergency). Nothing too fancy... just getting the bootloader and app cooperate to turn the user button into a watchdog enforced long press reset button.

I've been using MicroPython with a BLE REPL as a test payload and the next step is to get something on the display so I just wondered if someone is ahead of me there and already has this going in Python? Once the back is on I'd like to at least see the time!

I found this project https://github.com/devbis/st7789_mpy
but not tested for the moment since I would like to have a bootloader to test before.

Could you please provide your bootloader to test ?

My work to date can be found at https://github.com/daniel-thompson/wasp-os (the bootloader and micropython are both submodules which you can look at independently if you prefer). Having said that there's no documentation at this point... I'm still focused on getting the time to display (given this the device is a watch and all that).

Thank you for sharing this. Knowing some python I think this will be a good route for me to take.
#6
YES ! really thank you for this.

It will be the first step for me to develop to the pinetime Wink.

I check that and give you feedback soon !

Thanks.
#7
PineTime's touchscreen controller is so interesting that I wrote a whole article about it :-)

Building a Rust Driver for PineTime’s Touch Controller
#8
(01-20-2020, 06:41 PM)Memiks Wrote: YES ! really thank you for this.

It will be the first step for me to develop to the pinetime Wink.

I check that and give you feedback soon !

Thanks.

Great. It will be interesting to compare notes. I have started experimenting with porting the pure-Python RPi ST7789 driver from pimoroni but it hasn't sprung into life yet.

(01-20-2020, 09:26 PM)lupyuen Wrote: PineTime's touchscreen controller is so interesting that I wrote a whole article about it :-)

Building a Rust Driver for PineTime’s Touch Controller

Cool. I've been enjoying your articles.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#9
Just checked in a proof-of-conept display driver based on the adafruit+pimoroni one. Nothing fancy at this point but we can do basic line by line stuff:

Code:
import pinetime
tft = pinetime.st7789()
tft.set_window()
for i in range(240):
    tft.data([0xf8, 0x00] * 240)

I might just spend a little while at this point seeing if I can draw the pine logo.
Drawing the pine logo from C with the least possible code size is about to a side challenge to see if we can give the bootloader a splash screen...
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#10
Would it be possible for you to give us a brief Would it be possible for me to flash this to a Pinetime via a Raspberry Pi?
I'm very eager to get started with learning this, and just need a bit of guidance on how to start with Wasp-Os


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinetime - Kids with special needs hidara 0 79 06-11-2024, 10:42 PM
Last Post: hidara
  Develop a new firmware for PineTime belushi 2 1,540 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 659 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 832 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,306 05-06-2023, 02:15 PM
Last Post: lcj
  Send a message from Android to pinetime via BLE razrosman 0 1,029 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,276 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 1,815 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,667 03-20-2022, 08:58 PM
Last Post: jandy
  "Pine64 USB JTAG Adapter + OpenOCD + PineTime" should it work? ITCactus 4 4,273 03-02-2022, 05:58 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)