Moddable-OpenSource / moddable

Tools for developers to create truly open IoT products using standard JavaScript on low cost microcontrollers.
http://www.moddable.com
1.34k stars 235 forks source link

Support the M5Stack ESP32 Core Ink Development Kit #705

Closed braechnov closed 2 years ago

braechnov commented 3 years ago

Describe Add build support for the M5Stack ESP32 Core Ink Development Kit

Why do you think this feature would be useful? You already support a range of M5 Stack products, it would surely make sense to extend that range and please support this product as well.

Describe alternatives you've considered None considered yet other than having to use Arduino or ESP-IDF

phoddie commented 3 years ago

We can take a look. The display driver is likely the most significant part of the effort. We don't have one here. Do you happen to have a spare unit??

braechnov commented 3 years ago

If you're prepared to take a look I'll buy you one!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Peter Hoddie @.***> Sent: Wednesday, 22 September 2021, 01:44 To: Moddable-OpenSource/moddable Cc: braechnov; Author Subject: Re: [Moddable-OpenSource/moddable] Support the M5Stack ESP32 Core Ink Development Kit (#705)

We can take a look. The display driver is likely the most significant part of the effort. We don't have one here. Do you happen to have a spare unit??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Moddable-OpenSource/moddable/issues/705#issuecomment-924491552, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APEICFEAONNRES3AURBVNC3UDERFVANCNFSM5EPWPW4A.

phoddie commented 3 years ago

All in. Send an email to info@moddable.com and I'll send you our office address.

phoddie commented 3 years ago

(Hardware is on the way!)

phoddie commented 3 years ago

Hardware arrived. Here's a test pattern drawn using a quick port.

phoddie commented 3 years ago

More progress: this image was drawing using Poco. The image shows five levels of gray even though the display has only black and white pixels. The dithering is done in the driver -- Burkes dither here though I intend to switch over to the venerable Atkinson dither.

tribalmatt commented 3 years ago

Hi Peter,

Are these samples in the SDK? Did I miss them when I was trying to setup the Heltec OLED?

Thx, Matt

On Tue, Oct 5, 2021 at 10:18 AM Peter Hoddie @.***> wrote:

More progress: this image was drawing using Poco. The image shows five levels of gray even though the display has only black and white pixels. The dithering is done in the driver -- Burkes dither here though I intend to switch over to the venerable Atkinson dither https://twitter.com/phoddie/status/1274054350034223104.

https://user-images.githubusercontent.com/6856458/136071060-b61e70b4-1ad9-4c9a-9ee6-80cc299b382e.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Moddable-OpenSource/moddable/issues/705#issuecomment-934606757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISN6KRGKYAHZ2REC5RNQRDUFMXOVANCNFSM5EPWPW4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

phoddie commented 3 years ago

@tribalmatt - The M5Core Ink work isn't posted yet. I'll get there in a day or so. There's some work remaining to make it at all generally useful. The M5Paper work is up on my personal site, ahead of migrating over to the Moddable SDK. Every detail of the M5Paper and M5Core Ink efforts is different, but the structure is almost exactly the same

One big difference from the Heltec/SSD1306 driver you looked at is that both M5Core Ink and M5Paper have display drivers implemented in JavaScript, not C. They use the Ecma-419 APIs to do that. I've been using them as a test bed to explore that. Despite being written in JavaScript, the performance is still quite respectable.

phoddie commented 3 years ago

The M5Core Ink port is available! It includes an entirely new display driver written using Ecma-419 IO APIs and the new Commodetto Dither module. It works well but there's still some bits and pieces to do, so it is in my personal repository for now. The readme explains the details.

phoddie commented 2 years ago

Closing as support fro M5Core Ink (and M5Paper) have been merged to the Moddable SDK repository. Enjoy.