seeed-studio / ardupy Goto Github PK
View Code? Open in Web Editor NEW๐ญ ๐ญ ArduPy makes MicroPython and Arduino work together perfectly.
License: MIT License
๐ญ ๐ญ ArduPy makes MicroPython and Arduino work together perfectly.
License: MIT License
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.
The README has no instructions on how to install. Looking at the other issue here I found https://wiki.seeedstudio.com/ArduPy/
How about updating the readme and add the URL above?
Thanks!
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
Can ArduPy run in a https://wiki.seeedstudio.com/Grove_Beginner_Kit_for_Arduino/#seeeduino-lotus-v11 ?
If yes, what are the steps?
If not yet - what needs do be done?
If impossible - what are the limitations that make it impossible?
Thanks!!!
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'
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
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
Is the esp32 supported ?
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
Expected behavior
Support for wifi, bluetooth, accelerometer, IR emitter, light sensor and USB as promised on webpage.
Similar to #14 - can it be done on an Arduino UNO R3? Thanks!
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.