M5Cloud icon indicating copy to clipboard operation
M5Cloud copied to clipboard

source code for python libraries

Open robertmuth opened this issue 7 years ago • 7 comments

I would like to use the python bindings (e.g. from m5stack import *) used in the examples with the standard micropython Where can I find the source code for these?

robertmuth avatar Jan 09 '18 03:01 robertmuth

Hi, m5stack library LCD driver is most write with C, so it can't alone used in the standard micropython, the project souce will upload github with next week. The firmware is base on https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo

0x1abin avatar Jan 11 '18 05:01 0x1abin

Thanks, that is great news!

robertmuth avatar Jan 11 '18 20:01 robertmuth

Hello, could you please upload the source code of python libraries? Others could then add examples, libraries. And prototyping is faster too.

pmoses avatar Feb 03 '18 15:02 pmoses

Something that would also be helpful is a python file with symbolic names for the pins of the "bottom shield:"

https://pbs.twimg.com/media/DKk7Q_1UEAEnCre.jpg

This is a good start: https://github.com/tuupola/micropython-m5stack/blob/master/firmware/lib/m5stack.py

robertmuth avatar Feb 09 '18 19:02 robertmuth

I'm trying to figure out but I believe examples are out of date(or totally wrong). at least

  1. sleep_ms() doesn't work
  2. I doubt that speaker.volume() is no longer valid.
  3. speaker.tone(freq=n, timeout=n) doesn't work //so can't stop tone! speaker.mute() doesn't work. I mean "doesn't work" that it stops rest of code at all.
  4. we can't know what's going on in boot sequence. (what's the hell is goin' on this 2 sentences. import wifisetup import m5cloud ) we can't handle what we bought at least through m5cloud.

papinianus avatar May 11 '18 15:05 papinianus

How to use other modules which are used C binding? I know that https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo https://github.com/tuupola/micropython-m5stack/blob/master/firmware/lib/m5stack.py But M5Stack are lacked a lot of other C binding modules.

iccentt avatar Nov 27 '18 07:11 iccentt

@0x1abin This issue has been open over a year, but there doesn't appear to have been much progress. The m5stack modules and similar are frozen, so even trying to extract them from the firmware is difficult and it's impossible to rebuild the stack code from source. The Micropython_m5stack repository seems out-of-sync with the M5cloud repository (which seems more full-featured), but it'd difficult to know all the available features without the being able to read the source code. It also prevents people in the community improving the python support for the M5stack itself, so getting a clear single location with all the original source seems like it would be beneficial for everyone.

Could you please give us an idea of when the code might be released?

ikelos avatar Feb 20 '19 22:02 ikelos