Code Monkey home page Code Monkey logo

m5cardputer-userdemo's Introduction

M5Cardputer-UserDemo

M5Cardputer user demo for hardware evaluation.

Tool Chains

ESP-IDF v4.4.6

Build

git clone https://github.com/m5stack/M5Cardputer-UserDemo
cd M5Cardputer-UserDemo
idf.py build

m5cardputer-userdemo's People

Contributors

anderson- avatar forairaaaaa avatar logimancer avatar musicdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m5cardputer-userdemo's Issues

Adding "arduinoesp32" as a component causes bootloop with LovyanGFX

After adding "arduinoesp32" to this project, with no personal code changes, the Cardputer boot loops with no display output.
I'm using ESP-IDF 4.4.6 as my build system, and added version 2.0.14 of arduinoesp32 to the project.

I've tried configuration changes to no avail. The errors below are from an unmodified pull (minus the addition of the library).

[1970-01-01 00:00:01.320] [info] init display
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
0x4212e5a5: lgfx::v1::IPanel::width() const at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx\v1/panel.hpp:103
 (inlined by) lgfx::v1::LGFXBase::width() const at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx\v1/LGFXBase.hpp:284
 (inlined by) lgfx::v1::LGFXBase::clearClipRect() at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx\v1/LGFXBase.cpp:118
0x4212e5a2: lgfx::v1::LGFXBase::clearClipRect() at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx\v1/LGFXBase.cpp:117
0x42033ca5: lgfx::v1::LGFXBase::setRotation(unsigned int) at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx\v1/LGFXBase.cpp:62
0x4202de31: lgfx::v1::LGFX_Sprite::createSprite(int, int) at c:\users\lithiuman\desktop\cardputer\components\lovyangfx\src\lgfx/v1/LGFX_Sprite.hpp:181
0x4202f126: HAL::HalCardputer::_display_init() at C:/Users/Lithiuman/Desktop/Cardputer/main/hal/hal_cardputer.cpp:36
0x4202f8f5: HAL::HalCardputer::init() at C:/Users/Lithiuman/Desktop/Cardputer/main/hal/hal_cardputer.cpp:119
0x42009df6: app_main at C:/Users/Lithiuman/Desktop/Cardputer/main/cardputer.cpp:38
0x42136591: main_task at C:/Espressif/frameworks/esp-idf-v4.4.6-2/components/freertos/port/port_common.c:141
0x4038497d: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v4.4.6-2/components/freertos/port/xtensa/port.c:142

Any thoughts are appreciated :)

Cannot compile: No module named 'future'

I installed esp-idf 4.4.6, ran . ./export.sh and when I try to run idf.py build:

Executing action: all (aliases: build)
Running ninja in directory /home/axon/source/M5Cardputer-UserDemo/build
Executing "ninja all"...
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32s3
Processing 3 dependencies:
[1/3] espressif/cmake_utilities (0.5.2)
[2/3] espressif/esp-now (2.4.0)
[3/3] idf (4.4.6)
-- LovyanGFX use components = nvs_flash;efuse;esp_lcd
-- Project sdkconfig file /home/axon/source/M5Cardputer-UserDemo/sdkconfig
Traceback (most recent call last):
  File "/home/axon/Downloads/esp-idf-v4.4.6/tools/kconfig_new/confgen.py", line 35, in <module>
    from future.utils import iteritems
ModuleNotFoundError: No module named 'future'
CMake Error at /home/axon/Downloads/esp-idf-v4.4.6/tools/cmake/kconfig.cmake:266 (message):
  Failed to run confgen.py
  (/home/axon/.espressif/python_env/idf5.1_py3.11_env/bin/python;/home/axon/Downloads/esp-idf-v4.4.6/tools/kconfig_new/confgen.py;--kconfig;/home/axon/Downloads/esp-idf-v4.4.6/Kconfig;--sdkconfig-rename;/home/axon/Downloads/esp-idf-v4.4.6/sdkconfig.rename;--config;/home/axon/source/M5Cardputer-UserDemo/sdkconfig;--env-file;/home/axon/source/M5Cardputer-UserDemo/build/config.env).
  Error 1
Call Stack (most recent call first):
  /home/axon/Downloads/esp-idf-v4.4.6/tools/cmake/build.cmake:534 (__kconfig_generate_config)
  /home/axon/Downloads/esp-idf-v4.4.6/tools/cmake/project.cmake:476 (idf_build_process)
  CMakeLists.txt:14 (project)


-- Configuring incomplete, errors occurred!
FAILED: build.ninja 
/usr/bin/cmake --regenerate-during-build -S/home/axon/source/M5Cardputer-UserDemo -B/home/axon/source/M5Cardputer-UserDemo/build
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1

When I run pip3 install future from within the esp-idf virtual env, I get:

Requirement already satisfied: future in /home/axon/.espressif/python_env/idf4.4_py3.11_env/lib/python3.11/site-packages (0.18.3)

So I tried installing python-future system wide with my package manager. It successfully installed. Re-launching a fresh virtualenv after rebooting still gets the same error about no module named 'future'

ideas? I am on a fully-updated Manjaro Linux system.

cannot compile demo

Hi!
I followed the steps on my mac and I got this result:

CMake Error at /Users/giovanni/esp/esp-idf/tools/cmake/component.cmake:381 (__component_get_property):
  __component_get_property Function invoked with incorrect arguments for
  function named: __component_get_property
Call Stack (most recent call first):
  main/CMakeLists.txt:24 (idf_component_get_property)


CMake Error at main/CMakeLists.txt:26 (target_link_libraries):
  Cannot specify link libraries for target "CONFIG_SOC_MPU_MIN_REGION_SIZE"
  which is not built by this project.


-- Configuring incomplete, errors occurred!

It seems something is missing.

How could I solve it?

ESPnow mode switching?

can we get a feature so that we can switch espnow modes? like between short and long range mode?

How to enable fn key + Keyboard Arrow

when connected as a bluetooth keyboard,
When I press the arrow keys in combination with the fn key,
The fact that the fn key is pressed is ignored.
It is not recognized as an arrow key and I want to fix it.

Updating dependencies in components and utils

Noticed that this project uses other libraries but the files are directly copy pasted. Is there a way to know which version of each library is (especially for LovyanGFX and mooncake)? Or it is unecessary to consider upgrading those libs?

Community resources for the Cardputer?

I'm having a lot of fun tinkering with the Cardputer user demo. Are there any other community hangouts besides this official github?

The code and libraries all seem to be easy to read and well documented thus far. I'm looking for help with the logistical side of things, such as how to set up a proper dev/debug environment (instead of full clean/rebuild/reflash for every small change)

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.