Search found 10 matches

by laiyingjie
Tue Dec 05, 2017 5:14 pm
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 1433

Re: How can I hide my codes?

I need your instruction,thanks!
by laiyingjie
Tue Dec 05, 2017 9:41 am
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 1433

Re: How can I hide my codes?

I used to use STM32 MCU and download my codes with .bin or .hex file.
So I think my team will not work hard on it if they know the sourse code will be so easy to be copied.
by laiyingjie
Mon Dec 04, 2017 5:37 pm
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 1433

How can I hide my codes?

When I download my main.py to openmv3,anyothers get it and connect it to PC can see my main.py.
It is dangerous if I put openmv3 into my product.
Any suggestions?
by laiyingjie
Sat Nov 25, 2017 8:12 pm
Forum: Technical Discussion
Topic: I2C/UART/SPI/CAN to other STM32 MCU,which is faster?
Replies: 3
Views: 2169

I2C/UART/SPI/CAN to other STM32 MCU,which is faster?

I want to sent image data to other STM32 MCU,which method would be faster?
by laiyingjie
Tue Nov 21, 2017 6:01 pm
Forum: Technical Discussion
Topic: share my UART receive code
Replies: 0
Views: 10436

share my UART receive code

global_list.py: buf = bytearray(30) main.py: import global_list import sensor import time, sensor, pyb from pyb import UART sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) sensor.skip_frames() uart = UART(3, 9600) led = pyb.LED(3) clock = time.clock() while(True):...
by laiyingjie
Sun Nov 19, 2017 10:05 am
Forum: General Topics
Topic: how to write UART interrupt callback code?
Replies: 8
Views: 3707

Re: how to write UART interrupt callback code?

And then I want to konw how to receive a frame like"AA 56 FF FC FF"(AA:frame head, FF FC FF:frame end).
……I need help again.
by laiyingjie
Fri Nov 17, 2017 8:06 pm
Forum: General Topics
Topic: how to write UART interrupt callback code?
Replies: 8
Views: 3707

Re: how to write UART interrupt callback code?

Thanks. I add global_list.py as: flag = False counter=1 and main.py as: import global_list import sensor, image, time from pyb import Pin, ExtInt from pyb import UART from pyb import LED red_led = LED(1) uart = UART(3, 19200, timeout_char = 1000) def flag_True(line): if not global_list.flag: global_...
by laiyingjie
Fri Nov 17, 2017 7:24 am
Forum: General Topics
Topic: how to write UART interrupt callback code?
Replies: 8
Views: 3707

Re: how to write UART interrupt callback code?

import sensor, image, time #import time from pyb import Pin, ExtInt from pyb import UART from pyb import LED red_led = LED(1) uart = UART(3, 19200) def flag_True(line): red_led.toggle() ext = ExtInt(Pin('P5'), ExtInt.IRQ_FALLING, Pin.PULL_NONE,flag_True) ext.enable() while(True): pass These codes w...
by laiyingjie
Thu Nov 16, 2017 5:15 pm
Forum: General Topics
Topic: how to write UART interrupt callback code?
Replies: 8
Views: 3707

how to write UART interrupt callback code?

class ExtInt – configure I/O pins to interrupt on external events "There are a total of 22 interrupt lines. 16 of these can come from GPIO pins and the remaining 6 are from internal sources." my code : # Hello World Example # # Welcome to the OpenMV IDE! Click on the green run arrow button below to ...

Go to advanced search