Search found 67 matches

by skylin008
Wed Aug 12, 2020 12:22 pm
Forum: MicroPython pyboard
Topic: multibutton and aswitch.py
Replies: 3
Views: 347

Re: multibutton and aswitch.py

Hi, Follow this my code,the function is ok. class switch_ext: """ pb12 = Y5 Turn Right low effective byte1.bit0-bit1 Pb13 = Y6 Turn Left low effective byte1.bit2-bit3 Pb14 = Y7 Open door low effective byte1.bit4-bit5 pb15 = Y8 Turn Back low effective byte1.bit6-bit7 pc8 = SD_D0 Acc low effecive byte...
by skylin008
Fri Jul 31, 2020 9:28 am
Forum: MicroPython pyboard
Topic: multibutton and aswitch.py
Replies: 3
Views: 347

Re: multibutton and aswitch.py

Thanks pythoncoder. I will be try and feedback.
by skylin008
Thu Jul 30, 2020 1:05 pm
Forum: MicroPython pyboard
Topic: multibutton and aswitch.py
Replies: 3
Views: 347

multibutton and aswitch.py

Hello,I had used the aswitch.py to scan the switch press and release function. Follow this py file is scan multi switch function.Are there aswitch.py can scan two or more switch press at same time and read the switch value?Thanks! class switch_ext: """ pb12 = Y5 Turn Right low effective byte1.bit0-b...
by skylin008
Tue Jul 21, 2020 12:17 pm
Forum: MicroPython pyboard
Topic: uncaught exception in CAN(1) rx interrupt handler
Replies: 0
Views: 229

uncaught exception in CAN(1) rx interrupt handler

Hello, everyone! When the pc Can tools send multi Can Id data to PYBV11 Can Bus(1) every 2ms, all data received,the filter set: set_filters([(0, 0)]).But any issue shows are: "uncaught exception in CAN(1) rx interrupt handler" and "Exception: schedule stack overflow". As code:// The file from spacec...
by skylin008
Mon Jul 06, 2020 11:54 am
Forum: MicroPython pyboard
Topic: Canbus Transceive Error
Replies: 0
Views: 277

Canbus Transceive Error

Hello, I have two pyboards and commuicate with each other via CanBus. when them work receiver and sender simultaneously, only received four bytes each other. when this script single run and comunicate with PC tools ,it works well. How solve this issue. Thanks! A board: import pyb can = pyb.CAN(1, mo...
by skylin008
Mon May 18, 2020 8:44 am
Forum: Development of MicroPython
Topic: CANBUS protocl
Replies: 1
Views: 325

CANBUS protocl

Hi, everyone! If any CANBUS protocol be run pyboard with micropython language? Thanks!
by skylin008
Tue May 05, 2020 2:11 pm
Forum: General Discussion and Questions
Topic: CanOpen
Replies: 1
Views: 1652

Re: CanOpen

Hi fma, I want to pyboard be communication with vehilce every node used CanOpen protocol.If you had any processing?There is CanOpen protocok with python3. https://pypi.org/project/canopen/ But Whether be suited for pyboard.
by skylin008
Mon Apr 13, 2020 2:36 pm
Forum: Programs, Libraries and Tools
Topic: Guide to uasyncio V3
Replies: 9
Views: 1033

Re: Guide to uasyncio V3

@pythoncoder Thank you very much for you shared your code.I had been rebuilded the micropython firmware. how to porting to the uasyncio to the firmware.
by skylin008
Fri Mar 20, 2020 6:53 am
Forum: Programs, Libraries and Tools
Topic: Btree error on openmv build
Replies: 3
Views: 439

Re: Btree error on openmv build

Thank you jimmo.Yes, I had pult the submodule. The arm-none-eabi-gcc version is: gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q3-update)
by skylin008
Thu Mar 19, 2020 12:32 pm
Forum: Programs, Libraries and Tools
Topic: Btree error on openmv build
Replies: 3
Views: 439

Btree error on openmv build

Hello, everyone! I git clone the openmv source from https://github.com/openmv/openmv.git ,but when build,any erros as show: In file included from ../../extmod/modbtree.c:37:0: ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token ../../include/db.h ^ In...