Search found 30 matches
- Mon May 09, 2016 6:41 pm
- Forum: Drivers for External Components
- Topic: Standard API for drivers?
- Replies: 37
- Views: 29772
Re: Standard API for drivers?
This stuff about properties and memory usage is pretty far off the OP's original topic, which was standard api's for devices/drivers. I am surprised to hear that a developer of a new port would have made, for example, an SPI device that did not have the same API as the standard, documented SPI devic...
- Tue Apr 05, 2016 2:40 am
- Forum: MicroPython pyboard
- Topic: how to use usb port for user data
- Replies: 4
- Views: 6692
Re: how to use usb port for user data
Thanks for your help, I will try the options you suggested. My actual goal is to have the pyboard control the sample rate of an attached sensor, possibly filter the data and push it to subscribers. I first thought of using the usb port for testing at least, but the eventual device would be autonomou...
- Mon Apr 04, 2016 8:11 pm
- Forum: MicroPython pyboard
- Topic: how to use usb port for user data
- Replies: 4
- Views: 6692
Re: how to use usb port for user data
Would something like this work? import pyb import select sensor = Sensor() # I have to implement this def push_up(usb, sensor): usb.setinterrupt(-1) while True: select.select([usb, sensor], [], []) if usb.any(): sensor.write(usb.read(256)) # pass command to sensor if sensor.any(): usb.write(sensor.r...
- Mon Apr 04, 2016 6:56 pm
- Forum: MicroPython pyboard
- Topic: how to use usb port for user data
- Replies: 4
- Views: 6692
how to use usb port for user data
I want to forward sensor data to a pc host, and thought it would be possible to use the usb port to do so. But there are problems: repl apparently owns the usb port, at least if i open /dev/ttyACM0 on the host. If i run one of the leds tutorials that loops with short delays, the repl output is not u...
- Thu Mar 17, 2016 3:56 am
- Forum: General Discussion and Questions
- Topic: MODBUS implementation
- Replies: 7
- Views: 10118
Re: MODBUS implementation
All I know about modbus i read on wikipedia. But it appears to be a command and control protocol that can be used over serial links, with some computer being the master and your pyboard being a slave. You would have to implement a monitor program to run on the pyboard that would continuously wait fo...
- Thu Mar 10, 2016 4:50 am
- Forum: General Discussion and Questions
- Topic: Difference between pyMIte and MicroPython
- Replies: 7
- Views: 9099
Re: Difference between pyMIte and MicroPython
Hi, ATMEL probably has a low level library comparable to the ST hal used in the stmhal port, I know they do
for SAM3 chips used in e.g. Arduino Due. You may find the code in Atmel Studio IDE, if you can access Windows,
or look for it on the ATMEL web site..
for SAM3 chips used in e.g. Arduino Due. You may find the code in Atmel Studio IDE, if you can access Windows,
or look for it on the ATMEL web site..
- Thu Mar 10, 2016 4:42 am
- Forum: MicroPython pyboard
- Topic: cant build stmhal with Linaro toolchain
- Replies: 6
- Views: 5189
Re: cant build stmhal with Linaro toolchain
Thanks, that fixed the problem, now the build completes.
- Wed Mar 09, 2016 8:13 pm
- Forum: MicroPython pyboard
- Topic: cant build stmhal with Linaro toolchain
- Replies: 6
- Views: 5189
Re: cant build stmhal with Linaro toolchain
Hi all, I downloaded the launchpad tool chain. Now all the files seem to compile, but the link fails with a dozen or so messages like: objcomplex.c:(.text.complex_print+0x52): undefined reference to `__isnanf' Also not found were __finitef and sincosf. I couldn't find any references to __isnanf in t...
- Tue Mar 08, 2016 7:08 pm
- Forum: MicroPython pyboard
- Topic: cant build stmhal with Linaro toolchain
- Replies: 6
- Views: 5189
Re: cant build stmhal with Linaro toolchain
Thanks for your reply.True, Linaro has a Linux focus, but also provides a bare metal toolchain, the one I used.
I also tried the standard one provided by Linux Mint via Synaptic, which has different problems.
I will try the launchpad one next.
I also tried the standard one provided by Linux Mint via Synaptic, which has different problems.
I will try the launchpad one next.
- Tue Mar 08, 2016 12:30 am
- Forum: MicroPython pyboard
- Topic: cant build stmhal with Linaro toolchain
- Replies: 6
- Views: 5189
cant build stmhal with Linaro toolchain
Hi, I made a first attempt to build stmhal on a Linux Mint system with a Linaro toolchain, specifically gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf, and got some errors. The definition of HUGE in micropython/lib/libm/fd_libm.h (~line 88) gets a 'redefined' error, since HUGE was previously de...