Code Monkey home page Code Monkey logo

ardupy's People

Contributors

ansonhex avatar baorepo avatar lynnl4 avatar pillar1989 avatar powerfulcat 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ardupy's Issues

Interrupt Example for GPIO / BUTTONS

I would very much like an example of how to use Buttons or GPIO on the WIO Terminal specifically (however any code examples will work) on how to attach a pin that is set to pin.IRQ_RISING (etc) to a isr function call.

Flashing error: Verify failed

I am getting this error (at the end) while running aip flash (very first time) on the Wio Terminal.
I was able to run almost all Arduino examples though.

Set binary mode
version()=v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
Connected at 921600 baud
readWord(addr=0)=0x2000d6a0
readWord(addr=0xe000ed00)=0x410fc241
readWord(addr=0x4)=0x56d
readWord(addr=0x41002018)=0x60060001
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x80)
writeWord(addr=0x20004020,value=0x20008000)
version()=v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
readByte(addr=0x804000)=0xb9
readByte(addr=0x804001)=0x92
readByte(addr=0x804008)=0xff
readByte(addr=0x804009)=0xff
readByte(addr=0x80400a)=0xff
readByte(addr=0x80400b)=0xff
Device       : ATSAMD51x19
Version      : v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
Address      : 0x0
Pages        : 1024
Page Size    : 512 bytes
Total Size   : 512KB
Planes       : 1
Lock Regions : 32
Locked       : none
Security     : false
BOD          : false
BOR          : true
Write 291888 bytes to flash (571 pages)
[                              ] 0% (0/571 pages)write(addr=0x20004034,size=0x1000)
writeWord(addr=0x41004014,value=0x4000)
// Omitted long writes messages
....
....

[============================= ] 99% (568/571 pages)checksumBuffer(start_addr=0x4b000, size=0x200) = 0
read(addr=0x4b000,size=0x200)
[============================= ] 99% (569/571 pages)checksumBuffer(start_addr=0x4b200, size=0x200) = 0
[============================= ] 99% (570/571 pages)checksumBuffer(start_addr=0x4b400, size=0x30) = 0
[==============================] 100% (571/571 pages)
Verify failed
Page errors: 561
Byte errors: 277509

aip list causes exception on MacOS Catalina

python3 --version
Python 3.7.8

pip3 install ardupy-aip
aip list
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 788, in get
    value = d[option]
  File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/collections/__init__.py", line 916, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/collections/__init__.py", line 908, in __missing__
    raise KeyError(key)
KeyError: 'update time'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/aip", line 5, in <module>
    from aip.main import main
  File "/usr/local/lib/python3.7/site-packages/aip/main.py", line 39, in <module>
    from aip.parser import parser
  File "/usr/local/lib/python3.7/site-packages/aip/parser.py", line 465, in <module>
    parser = Parser()
  File "/usr/local/lib/python3.7/site-packages/aip/parser.py", line 70, in __init__
    self.check_board_version()
  File "/usr/local/lib/python3.7/site-packages/aip/parser.py", line 99, in check_board_version
    time = self.cp.get('board', 'update time')
  File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 791, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'update time' in section: 'board'

project status?

Hello, I am very interested in this project and I would like to be able to contribute to this repo, since there are many libraries for the arduino IDE, and now the development with micropython, and especially with the arq ARM, is taking a lot of strength.

I say this since I have tried to rebuild some functional modules of Arduino and now I can pass them to the Micropython project.

Thank you

Build failure TFT_espi.h missing

Hi,

I configure with with:

mkdir Build
cd Build

I then run cmake

BOARD=wio_terminal

cmake .. -DARDUINO_CORE_PATH=$HOME/.arduino15/packages/Seeeduino/hardware/samd/$COREVER \
   -DTOOLCHAIN=$HOME/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin \
   -DBOARD=$BOARD -DARDUINO_VERIANT=grove_ui_wireless

and the

make


[  0%] Generating genhdr/qstrdefs.generated.h
=======================start=========================
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
/home/andrewh/Source/SeeedStudio/ArduPy/shared-bindings/wrapper_lcd.cpp:30:22: fatal error: TFT_eSPI.h: No such file or directory
 #include <TFT_eSPI.h>
                      ^
compilation terminated.
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
CMakeFiles/micropython.dir/build.make:259: recipe for target 'genhdr/qstrdefs.generated.h' failed
make[2]: *** [genhdr/qstrdefs.generated.h] Error 1
CMakeFiles/Makefile2:97: recipe for target 'CMakeFiles/micropython.dir/all' failed
make[1]: *** [CMakeFiles/micropython.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Advice please

Wio Terminal missing support for wifi, bluetooth and USB in ArduPy

Describe the bug
Opposed to seeeds website, the python support for wifi, bluetooth, accelerometer, IR emitter, light sensor and USB is missing. And it looks like it will never come since the last update to ardupy was in August 2020.

To Reproduce

  1. Look at the webpage: https://www.seeedstudio.com/Wio-Terminal-p-4509.html
    "Compatible with Arduino and MicroPython, Wio Terminal is an ATSAMD51-based microcontroller with wireless connectivity powered by Realtek RTL8720DN"
  2. Look at Ardupy, nothing there.

Expected behavior
Support for wifi, bluetooth, accelerometer, IR emitter, light sensor and USB as promised on webpage.

Build fails on Ubuntu18.04.4

Hi,

I have cloned ArduPy and the submodules and have a script to perform the build

#!/bin/bash

rm -rf ./Build
mkdir Build
cd Build

cmake .. -DARDUINO_CORE_PATH=$HOME/.arduino15/packages/Seeeduino/hardware/samd/$COREVER \
    -DTOOLCHAIN=$HOME/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin \
    -DBOARD=grove_ui_m4 -DARDUINO_VERIANT=grove_ui_wireless

make

It fails with (lots) of the following error

In file included from /home/andrewh/Source/ArduPy/boards/grove_ui_m4/mphalport.h:31:0,
                 from /home/andrewh/Source/ArduPy/ardupy_storage.c:36:
/home/andrewh/.arduino15/packages/Seeeduino/hardware/samd/1.7.0/cores/arduino/Arduino.h:49:17: fatal error: sam.h: No such file or directory
 #include "sam.h"

I'm going to start trying to fix it, but you may already have. Any tips or pointers would be good too.

Regards,
Andrew

Documentation?

I'm interested in the work being done here ... is there anywhere that this project is being discussed or any information that can be shared ?

Thank You

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.